Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Button Objects

<html> <head> <title>Online Registration</title> <SCRIPT LANGUAGE="JavaScript">      function showHelp() {               helpWin = window.open("", "Help", "height=200,width=400")           helpWin.document.write("<body><h2>Help on Registration</h2>")           helpWin.document.write("1. step 1.<p>")           helpWin.document.write("2. step 2.<p>")           helpWin.document.write("3. step 3.<p>")           helpWin.document.write("<p>")           helpWin.document.write("<form><DIV ALIGN='CENTER'>")           helpWin.document.write("<input type=button value='OK' onClick='window.close()'>")           helpWin.document.write("</DIV></form></body>")          }     </SCRIPT>     </head>     <body>     <h1>Online Registration</h1>     <form method="POST">     <input type=button value="Help" onClick="showHelp()">     </p> </form> </body>