Personal web server - 224 Part III . Document Objects Reference Navigator

224 Part III . Document Objects Reference Navigator 2 and 3 on the Macintosh, an Easter egg style message appears in that window when it displays. This URL is also not guaranteed to be available on all browsers. If you need a blank frame, let your framesetting document write a generic HTML document to the frame directly from the SRC attribute for the frame, as shown in the skeletal code in Listing 16-3. Loading an empty HTML document requires no additional transactions. Listing 16-3: Creating a Blank Frame Viewing frame source code Studying other scripters work is a major learning tool for JavaScript (or any programming language). With most scriptable browsers you can easily view the source code for any frame, including those frames whose content is generated entirely or in part by JavaScript. Click the desired frame to activate it (a subtle border may appear just inside the frame on some browser versions, but don t be alarmed if the border doesn t appear). Then select Frame Source (or equivalent) from the View menu (or right-click submenu). You can also print or save a selected frame. Frames versus FRAME element objects With the expansion of object models that expose every HTML element to scripting (IE4+, NN6), a terminology conflict comes into play. Everything that you have read about frames thus far in the chapter refers to the original object model, where a frame is just another kind of window, with a slightly different referencing approach. That still holds true, even in the latest browsers. But when the object model also exposes HTML elements, then the notion of the FRAME element object is somewhat distinct from the frame object of the original model. The FRAME element object represents an object whose properties are dominated by the attributes you set inside the tag. This provides access to settings, such as the frame border and scrollability the kinds of properties that are not exposed to the original frame object.
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply