O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<NOFRAMES> — NN 2 IE 3 HTML 4

Synopsis

<NOFRAMES>...</NOFRAMES>

End Tag: Required

The NOFRAMES element contains HTML that is rendered by browsers incapable of displaying frames. Browsers that are capable of displaying frames ignore the NOFRAMES element and all content it contains. Content for this element should instruct the user about using frames or perhaps offer a link to a frameless version of the page. The most common location for the NOFRAMES element is inside a FRAMESET element. The HTML 4.0 specification, however, sees nothing wrong with embedding the element in a rendered document, if it makes sense for your application.

All attributes of the NOFRAMES element were added to support Cascading Style Sheets. This seems odd, because it would seem very unlikely that a browser would support CSS but not frames. Chalk it up to consistency.

Example

<FRAMESET COLS="150,*">
    <FRAME NAME="navbar" SRC="nav.html">
    <FRAME NAME="main" SRC="page1.html">
    <NOFRAMES>Your browser does not support frames. 
    Click <A HREF="noFramesIndex.html">here</A> for a frameless version.
    </NOFRAMES>
</FRAMESET>

Attributes

CLASS

ID

LANG

STYLE

TITLE

DIR

    

Event Handler Attributes

Handler

NN

IE

HTML

onClick

n/a

n/a

4

onDblClick

n/a

n/a

4

onKeyDown

n/a

n/a

4

onKeyPress

n/a

n/a

4

onKeyUp

n/a

n/a

4

onMouseDown

n/a

n/a

4

onMouseMove

n/a

n/a

4

onMouseOut

n/a

n/a

4

onMouseOver

n/a

n/a

4

onMouseUp

n/a

n/a

4

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required