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

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.

Tags Index: