JS to implement IFRAME refresh

Source: Internet
Author: User

Today to use the framework of the IFRAME refresh, found on the internet about this content, organized as follows:

(1) General page Refresh--reload method, this method forces the browser to refresh the current page.

Syntax: Location.reload ([Bforceget])

Parameters: Bforceget, optional parameter, default is False, the current page is taken from the client cache. True, the latest page from the server is taken as a GET, equivalent to the client clicking F5 ("Refresh")

Window.location.reload ();

(2) page refresh within the IFRAME frame

A, method one: document.getElementById (' Frameid '). ContentWindow.location.reload (True);
B, jquery implementation forced Flush: $ (' #iframe '). attr (' src ', $ (' #iframe '). attr (' src '));

(3) Refresh the open new page:

A, refresh the page containing the frame by: Parent.location.reload ();

b, the child window refreshes the parent window: Self.opener.location.reload ();

C. Refresh the page for another frame: parent. Another FrameID.location.reload ();

JS to implement IFRAME refresh

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.