Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 17:35:30
Original
2215 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:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!