So far we had no use for it. A form containing a text field and a button. Whenever you refer to anything in JavaScript, you do so by name. To get to the interior property, we simply had to write Rock.interior . Form Inputs Form inputs are the information that the user provides, such as text in text area, button clicks, etc.
Next example demonstrates how to handle inputs.
A form with a text field and a button. When the button is clicked, a new window pops up. Click here to see the example in a browser . The extra feature added in this example is the onClick handler in line 21 and the handleButton function in line 3-12. When you refer to the form using its full name, you would write document.box .