Results 1 to 6 of 6

Thread: Popup Menu - Right Click

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Does anyone know how to detect when a popup-menu appears?

    Thanks
    Mako Shark
    Great White

  2. #2
    Guest
    You can use the Click event for that menu.

    For example, if you had menuFile (the top one), and two others which are under it menuFileOpen and menuFileClose and you use Popupmenu menuFile. You detect when menuFile pops up by using menuFile's Click event.

    Sunny

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Thanks!

    I am talking about Internet Explorer popup.
    Mako Shark
    Great White

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Anyone?
    Mako Shark
    Great White

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Try this:

    Code:
    <HTML>
    <HEAD>
    <SCRIPT language="Javascript">
    function menuhandler()
    {
    window.alert("Stop that!");
    }
    </SCRIPT>
    </HEAD>
    <BODY oncontextmenu="menuhandler();return false">
    </BODY>
    </HTML>
    This code will prevent it from displaying if you just want to detect it take out the 'return false' in the BODY tag. You can also use this same thing on specific elements to prevent right clicking on only certain elements.

    Keep in mind however, that keeping someone who knows what they are doing from saving images on a web page or viewing source is not possible. If I'm viewing a site and I want the image I see, I know it's already on my drive in my Temporary Internet Files folder and I can always view source from the View menu.

    (I'm assuming that's what your trying to do..)

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247

    Thank You.

    Thanks Monte, but I am talking about if there is any API to detect the popup menu from internet explorer.
    Mako Shark
    Great White

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