”) OpenWindow.document.write(“will be sent along when you close this window.
”) OpenWindow.document.write(“Thank you ” + name + “ from ” ➥ +email+ “”) OpenWindow.document.write(“Your message
” ➥ + document.gbookForm.maintext.value + “
”) OpenWindow.document.write(“from “ + name + “ / “ +email+ “
”) OpenWindow.document.write(“will be sent along when you close this window.
”) OpenWindow.document.write(“
”) OpenWindow.document.write(“”) OpenWindow.document.write(“”) OpenWindow.document.write(“”) }
We used the format from Lesson 20, opening a new window with a function and named the function verify(). The window opens 300 pixels wide and 300 pixels tall. The background is an off-yellow represented by the hex code ffffcc, and the text in the new window is centered. Now, we get into how all the relevant text was entered into the window. Remember that you assigned the variables name and email to the information from the two prompts in the first script. Here those returned literal strings come into play. The line OpenWindow.document.write(“Thank you ” + name + “ from ” ➥ +email+ “”)
writes the text Thank you name from [email protected] to the news window. It’s a nice personal touch. Pay close attention to where the double quotation marks fall as well as where the and flags come into play. In the next line, you make the connection with the HTML form items that are yet to come in this deconstruction: OpenWindow.document.write(“Your message
” ➥ + document.gbookForm.maintext.value + “
”)
Notice first the hierarchy statement that takes the information from the