|
-
Sep 20th, 2000, 10:21 PM
#1
Thread Starter
Addicted Member
Does anyone know how to detect when a popup-menu appears?
Thanks
-
Sep 20th, 2000, 10:50 PM
#2
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
-
Sep 21st, 2000, 01:53 AM
#3
Thread Starter
Addicted Member
Thanks!
I am talking about Internet Explorer popup.
-
Sep 21st, 2000, 11:47 AM
#4
Thread Starter
Addicted Member
-
Sep 21st, 2000, 01:00 PM
#5
Frenzied Member
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..
-
Sep 21st, 2000, 04:37 PM
#6
Thread Starter
Addicted Member
Thank You.
Thanks Monte, but I am talking about if there is any API to detect the popup menu from internet explorer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|