JavaScript refreshes the specified box page method code

Source: Internet
Author: User

Frame.html, top.html, bottom.html as an example to specify how to do.
Frame.html consists of two pages (bottom.html) on top (top.html) with the following code:

Now assume that top.html (that is, the page above) has seven button to achieve the bottom.html (that is, the following page) of the refresh, you can use the following seven kinds of statements, which easy to do with their own.

Statement 1. Window.parent.frames[1].location.reload ();

Statement 2. Window.parent.frames.bottom.location.reload ();

Statement 3. window.parent.frames["Bottom"].location.reload ();

Statement 4. Window.parent.frames.item (1). Location.reload ();

Statement 5. Window.parent.frames.item (' Bottom '). Location.reload ();

Statement 6. Window.parent.bottom.location.reload ();

Statement 7. window.parent[' Bottom '].location.reload ();

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<title> Frame </title>
<frameset rows= "50%,50%" >
<frame name=top src= "top.html" >
<frame name=bottom src= "bottom.html" >
</frameset>

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.