Instances are created by the browser when it encounters an HTML tag with the TYPE attribute set to SUBMIT.
In the JavaScript object hierarchy, the Submit object is located at window.document.Form.Submit.
<html> <head> <script language="JavaScript"> <!-- function openWin(){ var myInstance = document.myForm.mySubmit; var myWin = open("", "","width=450,height=200"); myWin.document.write("The name is: " + myInstance.name + "<br>"); myWin.document.write("The type is: " + myInstance.type + "<br>"); myWin.document.write(myInstance.form.mySubmit.value); myWin.document.close(); } --> </script> </head> <body> <form name="myForm"> <input type=TEXT value="Hello, World!" name="myText"> <input type=SUBMIT value="Click to Submit" name="mySubmit" onClick="openWin()"> </form> </body> </html>