CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Posts
    7

    disabling right click menu that appears with options like back

    i want to disable the rightclick menu that appears whan i rightclick in iexplore using javascript.I do not want to disable right click but want to disable only right the click menu

  2. #2
    Join Date
    Sep 1999
    Location
    Leeds U.K. (Proud to be Sheffield Born)
    Posts
    202

    I might have misunderstood you but...

    ...might this fit your needs?

    <body oncontextmenu="return false;">

    or maybe:
    <script language="javascript">
    function doThing(){
    // do lots of interesting things...

    //and return false to suppress the menu
    return false
    }
    </script>
    </head>
    <body oncontextmenu="return doThing();">

    see how you find it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured