Export (0) Print
Expand All

Introduction to Framesets

Visual Studio .NET 2003

An HTML frameset document displays multiple, independent, scrollable regions called frames within the Web browser window. Each frame in a frameset displays an html document in its portion of the web browser window. Options available for framesets include whether a frame can scroll and whether it can be resized.

You can display new content in a frame by specifying the name of the frame as the target of a hyperlink. For example, one frame might display a table of contents whose entries are links. When you click an entry, the HTML page called by that link is displayed in the frame named as its target.

In This Section

Creating an HTML Frameset
How to create a frameset document.
Assigning HTML Pages to Frames in a Frameset
How to display a page in a frame.
Modifying HTML Framesets in Design View
How to customize a frameset.

Related Sections

Inserting HTML Hyperlinks and Bookmarks in Design View
How to create a hyperlink that targets a frame.

Reference Information

The underlying HTML markup for a frameset begins with a !DOCTYPE declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">

followed by <HEAD> and <FRAMESET> sections. There is no <BODY> section in a frameset document. The top-level <FRAMESET> element can contain various levels of embedded <FRAMESET> and <FRAME> elements. Each <FRAME> displays the HTML page specified in its SRC attribute in some portion of the Web browser window.

To configure a hyperlink on an HTML page displayed in a frameset to display another page in a certain frame, set the TARGET of the <A> hyperlink element to match the name of the desired <FRAME>. You can also set the TARGET of a hyperlink to "_self", "_parent", "_top" or "_blank."

For more information, see the following help topics:

See Also

Create URL Dialog Box | Editing HTML Pages in Design View | Document Outline Window | Editing HTML

Show:
© 2014 Microsoft