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

WBOY
WBOYOriginal
2016-05-16 17:35:302299browse

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.
Statement:
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