JavaScript

Javascript getElementById Method Example

To get the html element by their id attribute, we need to use HTML DOM getElementById() Method. <script language=”javascript” type=”text/javascript”> […]

Updated on     Kisan Patel

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