Assignment010a

JavaScript <noscript></noscript>

The following is a method (action) of the window object
This method is envoked by using the following code:
window.prompt("Please enter your name.", "");
The prompt reply is saved to a variable by using the following code:
var name;
name = window.prompt("Please enter your name.", "")' ;
The first line creates a variable by the name of 'name.' The second line sets 'name' equal to the reply of the prompt.