javascript - How to disable back button in php -


<html> <head> <script type="text/javasscript"> window.history.forward(); function noback() { window.history.forward(); } </script> </head>      <body onload="noback();" onpageshow="if(event.persisted) ;" onunload="">     <a href="a1.php">aa</a>  </body> </html> 

this code in html forwards same page when click back, how include script in php code.

you can example that:

<?php php code ?> html code <?php php code ?> html code <?php php code ?> 

or

<?php php code ... echo "your html code"; ... ?> 

Comments

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -