★ wanayoo — archive 1999 http://www.msdn.microsoft.com/workshop/author/dhtml/reference/objects/frame.aspNouvelle recherche | Portail wanayoo
MSDN Online Web Workshop   All Products  |   Support  |   Search  |   microsoft.com Home  
microsoft.com Home
  Home  |   Magazines  |   Libraries  |   Developer Centers  |   Resources  |   Downloads  |   Search MSDN
 
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=/old?u=http%3A%2F%2Fwww.msdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2F%3C%2FB&y=1999>#ID
    FRAMEBORDER=NO | YES | 0 | 1 
    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=/old?u=http%3A%2F%2Fwww.msdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2F%3C%2FB&y=1999>url
    TITLE=text
    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="/old?u=http%3A%2F%2Fwww.msdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2Fsample.htm&y=1999">

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