Insert another page in a Web page

Source: Internet
Author: User

<iframe src= "URL"
<!--the file path of the external Web page that is called, either an HTML file or a text, a JSP, and so on
Width: "x" Height: "x"
<!--the width and height of the inner frame area--
Scrolling= "[Auto|yes|no]"
<!--scrolling option when the specified external file for SRC is not complete in the specified area. No scroll bar appears, Auto automatically appears scroll bar, yes display scroll bar;
Frameborder= "0|1"
<!--the width of the area border, with an optional value of 0 or 1;
Name= "Name of the internal framework"
<!--the name of the framework for identification--
</iframe>


Example:
The following code uses an IFRAME to embed the Web site's home page inside a webpage:
<iframe src= "http://wwww.w3c.org"
Width= "" height= "200"
scrolling= "Auto"
Frameborder= "0"
Name= "Main" >
</iframe>

If you want to place a hyperlink on a Web page, when you click the hyperlink and open another page on the page, we need to name the IFRAME Name property,
and set the target property of the hyperlink's a tag to the Name property value of the IFRAME. Example:

<a href= "http://www.w3c.org" target= "main" > Open Web site on this page </a>
<iframe width= "0" height= "" "scrolling=" Auto "frameborder=" name= "+/-+" "main" ></iframe>

Insert another page in a Web page

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.