|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Although the TARGET attribute is useful for targeting the effects of hyperlinks, you can use it in other HTML tags as well. Placing the TARGET attribute in a <FORM> tag instructs the browser to target the response from the form submission to the specified frame. This enables you to set up a search form in one frame and have the search results appear in a separate frame. Another tag that takes the TARGET attribute is the <AREA> tag, which is used to define a hot region in a client-side imagemap. This permits the document associated with a hot region to be loaded into the frame of your choice. Finally, you can also use the TARGET attribute with the <LINK> tag. <LINK> is used to establish links to files that provide supporting information to a browser on how to render a file. You can link a style sheet to a page for example, using the <LINK> tag. Respecting the Frames-Challenged BrowsersIf you create a document with frames, people who are using a browser other than Netscape Navigator 4.0 or Microsoft Internet Explorer 4.0 might not be able to see the content you want them to see because their browsers dont understand the <FRAMESET>, </FRAMESET>, and <FRAME> tags. As a courtesy to users with frames-challenged browsers, you can place alternative HTML code between the <NOFRAMES> and </NOFRAMES> container tags. Any HTML between these two tags is understood and rendered by other browsers. A frames-capable browser, on the other hand, ignores anything between these tags and works just with the frame-related HTML.
Some users have a browser that can render frames, but the users dislike framed documents. For this portion of your audience, you should consider having a non-frames version of all your pages available (see Figure 7.8). This way, users who like frames can stick with them, and those who dont like frames have a way to view the same content without being burdened with an uncomfortable interface.
Creating Floating FramesMicrosoft introduced the concept of a floating frame with Internet Explorer 3. You can think of a floating frame as a smaller browser window that you can open in your main browser windowmuch like the picture-in-a-picture feature that comes with many television sets. The same as with regular frames, you can load any HTML document you want into a floating frame. The primary difference is that floating frames can be placed anywhere on a page that you can place an image. In fact, youll find the HTML syntax for placing floating frames to be similar to that for placing an image. You place a floating frame on a page by using the <IFRAME> and </IFRAME> tags. A browser that can do floating frames ignores anything between these two tags, enabling you to place an alternative to the floating frame (most likely text or an image) on the page as well. This way, browsers that dont know how to render floating frames can ignore the <IFRAME> and </IFRAME> tags and act on what is found between them. The <IFRAME> tag can take the attributes summarized in Table 7.2.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |