JS code: < script>】"> How to set up to turn off page refresh in php?-PHP Problem-php.cn

How to set up to turn off page refresh in php?

coldplay.xixi
Release: 2023-03-02 17:20:01
Original
2654 people have browsed it

php set the method to turn off page refresh: first use the [location.reload()] function; then enter the html code [JS code:

How to set up to turn off page refresh in php?

##php sets the method to turn off page refresh:

1. In actual application, when refreshing the page, we usually use:

location.reload()orhistory.go(0)to do it.

How to set up to turn off page refresh in php?

2. Enter

document.location.href='当前页面文件名称'";
Copy after login

How to set up to turn off page refresh in php?

3. Because this method is like the client pressing F5 to refresh the page, so When the page's method="post" is set, a "webpage expired" prompt will appear. That's because of Session's security protection mechanism.

How to set up to turn off page refresh in php?

4, or enter the html code:

JS代码: