Lab 11: The Window and DOCUMENT objects


NOTE: Place this script in the body of your page. Write a page using JavaScript that will use the window.confirm() method (recall the example from the last lecture) to tell the user that they are loading a page w/ JavaScript. If the user selects "OK", the page should prompt for the user's preferred page background color in hexidecimal, and use the document.bgColor object to load a blank page w/ that background color (see the other example from the last lecture). If the user selects "Cancel", the browser should load the page that the user was on previously using the window.history.go() object (again see the example from the last lecture).
Save your file as lab11.html.