<script>
<? PHP
Echo 'like=window. Confirm (" what do you think?" ); ';
Echo 'the if (like==true).
Echo 'document. Write (" thank you for your compliment "); ';
?>
</script>
Stop
The code above, will indicate how stop, click ok, don't show the stop, click ok after in time, to terminate execution,
CodePudding user response:
Learning PHP you must know the background of the code from the same page is always on the server to perform first, the background code execution after the page to the client browser,Page to the browser to perform the front-end js code, then the background code is already does not exist, have become the contents of the output,
So passing the js code to terminate the background code is impossible,