When you refresh a page with the Window.location.reload () method, sometimes a pop-up box like this appears in the browsing period.
the solution is :
One: Document.location.href = "${base}/rwfp/rwfpcontent" In this way to find the page corresponding to the action location, so that although the page is refreshed, but after the refresh data will be displayed from the first page, is not stuck in the original page.
Two: $ ("#yhsubmit"). Click () This method is related to pagination, #yhsubmit为
Copy Code code as follows:
<div class= "Pagination" >
< #compress >
< #include ". /LAYOUT/PAGINATION.FTL "/>
< #if pagination?exists>< @pagination formid= "#yhform" submitid= "#yhsubmit"/></#if >
</#compress >
<input type= "Submit" style= "Display:none;" id= "Yhsubmit"/>
</div>
This way the page will stay in its original position after refreshing.