Mouse Event



Write a javascript code to implement oncotextmenu Event.

<html>
  <head>
    <title>Mouse Event Demo</title>
      <script>

        function menu()
        {
          alert("Context Menu ");
        }

      </script>
    </head>
  <body>
<form name="frm1" action "">

      <input type="button" name="b1" value="Menu" oncontextmenu="menu()">
       
    </form>        
  </body>
</html>

Output: