In the same page, click on the link in one of the IFRAME to display the link content to another IFRAME

Source: Internet
Author: User

Two iframe on the same page, how to display the link content to another IFRAME after clicking on the link in one of the IFRAME

Two iframe IDs are iframe1 and iframe2, and click the link in iframe1 to display to Iframe2

The iframe1 contains a a.aspx,

The code in A.aspx is:

JS section:

<script >

function LoadPage (page)
{
if (page!= "#")
{
document.form1.action = page;
Document.form1.target = "Framecheckform";
Document.form1.submit ();
}
}

<script>

Part of the form:

<form id= "Form1" target= "Iframe2name" >

<a href= "javascript:loadpage (' result.aspx ')" > Links </a>

</form>

Where Iframe2name is the name attribute in Iframe2, it must be the Name property value.

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.