PHP and JS These two guys are always eight poles can't hit together, one on the server side, one in the foreground.
For security reasons, some "operations" should not continue to run when JS is not executed in the user's foreground.
Can only change the appearance of the style, there is no role, but also can be changed back at the front desk.
Therefore, there is no way to let the PHP program know whether the user browser successfully run JS?
Reply content:
PHP and JS These two guys are always eight poles can't hit together, one on the server side, one in the foreground.
For security reasons, some "operations" should not continue to run when JS is not executed in the user's foreground.
Can only change the appearance of the style, there is no role, but also can be changed back at the front desk.
Therefore, there is no way to let the PHP program know whether the user browser successfully run JS?
Add a hidden iframe, open a detection page, this page add a meta, at a certain time (such as 5 seconds) after the refresh to the notification page. Then the next script lets the current page jump to another page. If the browser allows JS to be executed, it jumps to the 2nd page and does not give a notification.
JS initiates an asynchronous request to the server?
Send an asynchronous request to the backend