Click to return to the DHTML, HTML     
FORM Element | FORM Objec...     FRAMESET Element | FRAMES...     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

FRAME Element | FRAME Object


Specifies an individual frame within a FRAMESET element.

HTML Syntax

<FRAME
    BORDERCOLOR=color
    CLASS=classname
    DATAFLD=colname
    DATASRC=#ID
    FRAMEBORDER=NO | YES | 0 | 1 
    HEIGHT=n
    ID=value
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS 
    MARGINHEIGHT=pixels
    MARGINWIDTH=pixels
    NAME=window_name | _blank | _parent | _self | _top 
    NORESIZE=NORESIZE | RESIZE
    SCROLLING=AUTO | NO | YES
    SRC=url
    TITLE=text
    WIDTH=n
    event = script
>

Remarks

If a user opens a Web folder inside a frame and then clicks something in the Web folder, the file or folder that the user clicks takes over the entire window. For example, suppose that a page contains two frames, one frame pointing to http://www.microsoft.com and the second frame pointing to a network drive. If the user clicks a file or folder in the second frame, that frame takes control of the entire window, including the first frame. For file types that the browser cannot host, such as .txt files, a separate window in the appropriate host application is opened.

A Web folder is a part of the file system hierarchy, but it does not necessarily represent anything in the file system. An example is Network Neighborhood.

The FRAME element is a block element and does not require a closing tag.

This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.

Members

Styles

Example

This example uses the FRAME element to define properties of the frame, including the location of the page loaded by the frame.

<FRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm">

This example shows how to reference an object with ID=sID in FRAME2, from another frame of the same frameset.

parent.frames.FRAME2.sID.innertext

See Also

FRAMESET



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.