Home > Web Front-end > JS Tutorial > The window.location.reload() method refreshes the page and pops up the dialog box to display the web page again_javascript skills

The window.location.reload() method refreshes the page and pops up the dialog box to display the web page again_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 17:35:30
Original
2313 people have browsed it

When refreshing the page using the window.location.reload() method, sometimes a pop-up box like this will appear during browsing.
The solution is :
1: document.location.href = "$ {base}/rwfp/rwfpcontent" Use this method to find the location of the Action corresponding to the page. Although the page is refreshed, the data will be displayed from the first page after the refresh, and will not stay on the original page.
2 : $("#yhsubmit").click() This method is related to paging. #yhsubmit is

Copy code The code is as follows :



After refreshing in this way, the page will stay at the original position.
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
mysqldump without specifying location
From 1970-01-01 08:00:00
0
0
0
web - nginx location search algorithm problem! ?
From 1970-01-01 08:00:00
0
0
0
nginx location matching problem
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template