Web design conference - CD-259Appendix F . Examples from Parts III and
CD-259Appendix F . Examples from Parts III and IV As the page loads, it stores the current state of each chrome element. One button for each chrome element triggers the toggleBar() function. This function inverts the visible property for the chrome object passed as a parameter to the function. Finally, the Restore button returns visibility to their original settings. Notice that the restore()function is also called by the onUnloadevent handler for the document. Also, if you load this example into NN6, non-fatal script errors occur when the scrollbars are turned on or off. Listing 16-6: Controlling Window Chrome