Share this Page URL

Chapter 13. Fooling Around with Frames > Handling Frame-Feeble Browsers - Pg. 152

Fooling Around with Frames 152 · BORDER--Set this attribute to 0 to tell the browser not to display the border between frames. For now, this works only in Netscape version 3.0 and up. For Internet Explorer, also use FRA- MEBORDER="0". Handling Frame-Feeble Browsers I mentioned earlier that you can't add regular text or HTML tags to a frame page. (Actually, you could if you put in a <BODY> tag. However, this would nullify the <FRAMESET> tag, so it would defeat the purpose.) So what happens when a browser that doesn't understand frames comes across your frame page? You guessed it, it doesn't display anything! This isn't a great way to welcome these surfers to your site, to say the least. However, there is a way to handle these nonframe browsers and at least give them something to chew on. It's called the <NOFRAMES> tag. Any text or HTML tags you insert between this tag and its </NOFRAMES> end tag shows up in a frameless browser. For example, here's the HTML for a page (frame5.htm on this book's CD) that includes the <NOFRAMES> tag, and you can see the result in Figure 13.8: <HTML> <HEAD> <TITLE>Handling Lame Frame Browsers</TITLE> </HEAD> <FRAMESET ROWS="25%,75%"> <FRAME SRC="1.htm" NAME="upper"> <FRAME SRC="2.htm" NAME="lower"> <NOFRAMES> <H3>Doh! Looks like you have a browser that is frames-challenged. <P> Here's a <A HREF="2.htm">frame-free page</A> that should be more to your browser's liking.</H3>