JavaScript

Disable Browser Back Button Using JavaScript

Just add the below code in the head section of the html page. <script type=”text/javascript”> window.onunload=function(){ window.history.forward(); }; </script> The […]

Updated on     Kisan Patel

How do I disable right click on web page?

Just add the oncontextmenu¬†attribute to body tag as shown in below code: <body oncontextmenu=”return false;”> … </body>

Updated on     Kisan Patel