Basic HTML version of Foils prepared 23 June 1997

Foil 54 General Syntax of <FRAME> tag

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


<FRAME SRC="URL" NAME="name"
  • SCROLLING=YES|NO|AUTO NORESIZE
  • MARGINWIDTH="value" MARGINHEIGHT="value">
All of these are optional Ñ the URL is the document to be loaded into this frame, which is often blank since user or script will specify what to load using TARGET="name" in a link
The value of NAME attribute is used by TARGET and is essential if you want to load a frame from the outside. A document will load into the current frame if no target specified
scrolling=YES always gives frame scrollbars
scrolling=NO gives no scrollbars and truncates document if necessary
scrolling=AUTO allows Netscape to choose if scrollbars are needed
NORESIZE if present says that user can NOT resize this frame, which has impact on ability of related frames to be resized
MARGINWIDTH and MARGINHEIGHT are given in pixels to specify the margin to be used around the frame



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998