Chapter 3, If-then statements about us!

Click the image to enter a password protected document. Try a wrong entry first.

Type your word
Result:
Here are a few types of commands that methods are useful for. Date Methods - set variables to the clock time in a variety of ways. Window Methods - used to open and close new windows Document Methods - Generate new documents on the fly. Form Methods - select form items, send the cursor to text boxes and submit forms. History Methods - Press the reader's 'Back' button and other tricks. Text Methods - Define the look of your text variables before your display them. Math Methods - sin, cos, round, random, absolute value, etc. MessageBox Methods - Alert, Prompt, and Confirm are all methods.
Type a message in the box,
it will become a link to close the new window.

document.open() document.write("Hello There") document.close() versus NewWindow = window.open("","","width=200,height=200") NewWindow.document.write("Hello There") NewWindow.document.close()
function rushbox(checked) { if (checked==true) {alert(" LIFT OFF! ")} }
function MsgBox() { alert("Hello There"); }
Menus: