JS page refresh events, JavaScript refresh the page in several ways __ Big data

Source: Internet
Author: User
1) <meta http-equiv= "Refresh" content= "10;url= jump page" > 10 means interval 10 seconds to refresh once 2) <script language= ' JavaScript ' >
Window.location.reload (TRUE); </script> If you want to refresh an iframe, replace window with the name of frame or ID number 3) <script language= ' JavaScript ' > Window.navigate ("
This page URL ");
</script> 4> function abc () {window.location.href= "/blog/window.location.href"; settimeout ("ABC ()", 10000);} Refresh this page: Response.Write ("<script Language=javascript>window.location.href=window.location.href;</script > "Refresh parent page: Response.Write (" <script language=javascript>opener.location.href=opener.location.href;</ Script> ") go to the specified page: Response.Write (" <script language=javascript>window.location.href= ' yourpage.aspx "; </ Script> ") 
javascript Refresh the page in several ways:   
1 history.go (0)  
2 location.reload ()  
3 location=location 
4 location.assign (location)  
5 document.execcommand (' Refresh ')  
6 window.navigate (location) &NBSP
7 location.replace (location)  
8 document. url=location.href 
Related Article

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.