A target's jump mode in frame framework

Source: Internet
Author: User
A target's jump mode in frame framework a target's jump mode in frame framework


Open a window in a frame

Instead of opening a full browser window, the more common approach to target is to direct the content of the hyperlink to one or more frames in a <frameset> display. You can put this list of content in one of the frames of a document with two frames and use this adjacent frame to display the selected document: <frameset cols= "100,*" > <frame src= "toc.html" > < Frame src= "pref.html" name= "View_frame" ></frameset>

Give it a shot yourself.

When the browser initially displays both frames, the frame on the left contains the table of contents, and the frame on the right contains the preface.

This is the source code of "toc.html":

Note that in the document "Toc.html", the target for each link is "View_frame", which is the frame on the right.

When a user selects a link from a table of contents in the left frame, the browser loads the associated document and displays it in the "View_frame" frame on the right. When other links are selected, the contents of the frame on the right will also change, and the frame on the left remains unchanged. special target.

There are 4 reserved target names used as special document redirection operations: _blank

Browsers always load the target document in a newly opened, unnamed window. _self

The value of this target is the default target for all <a> tags that do not specify a target, and it causes the target document to be loaded and displayed in the same frame or window as the source document. This goal is unnecessary and unnecessary unless used with the target attribute in the document title <base> tag. _parent

This goal causes the document to load into the parent window or the frameset that contains the frames referenced by the hyperlink. If the reference is in a window or in a top-level frame, it is equivalent to the target _self. _top

The goal is to load the document into the window containing the hyperlink, and using the _top target clears all the included frames and loads the document into the entire browser window.

Tip: All 4 values for these target start with an underscore. Any other window or target that starts with an underscore will be ignored by the browser, so do not underline as the first character of any frame name or ID defined in the document. syntax <a target= "Value" > property value

value description
_blank Open the linked document in a new window.
_self defaults. Open the linked document in the same frame. The
_parent opens the linked document in the parent frameset. The
_top opens the linked document throughout the window.
framename opens the linked document in the specified frame.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.