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
Post a Comment