Tomcat web server - CD-324 Part VI . Appendixes Example The following
CD-324 Part VI . Appendixes Example The following statement turns off the ability for a frame to be resized: parent.document.getElementById( myFrame1 ).noResize = true Because of the negative nature of the property name, it may be difficult to keep the logic straight (setting noResizeto true means that resizability is turned off). Keep a watchful eye on your Boolean values. scrolling NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Listing 16-45 produces a frameset consisting of eight frames. The content for the frames is generated by a script within the frameset (via the fillFrame()function). Event handlers in the Body of each frame invoke the toggleFrameScroll() function. Both ways of referencing the FRAME element object are shown, with the IE- only version commented out. In the toggleFrameScroll() function, the ifcondition checks whether the property is set to something other than no. This allows the condition to evaluate to true if the property is set to either auto(the first time) or yes(as set by the function). Note that the scrollbars don t disappear from the frames in IE5.5 or NN6. Listing 16-45: Controlling the FRAME.scrolling Property