About HTM new Page Refresh original page problem

Source: Internet
Author: User

For example, there is a homepage index.htm. There are two <iframe name= "a" src= "a.htm" >,<iframe name= "B" src= "b.htm" >

When you click on the Buttom button on page b, function B () {window.open ("c.htm")};

Open a new page c.htm, after doing something (these actions have changed the value of the background database, and these values are related to a.htm),

Click Buttom,function C () {in c.htm

DoSomething, if the c.htm is turned off, the browser is showing index.htm, but we know that one of the <iframe name= "a" src= "a.htm" > Values need to be updated, so close the

<iframe name= "A" src= "a.htm" before c.htm because of this refresh >

Window.close ();

}

How can I refresh <iframe name= "a" src= "a.htm" >?

Function C ()

{

window.opener.parent.frames[' Treeframe '].location.reload ();//It's all right.

Window.opener is for window.open (), so Window.opener get is b.htm

What Window.opener.parent get is index.htm.

}

About HTM new Page Refresh original page problem

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.