Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MenuExt in IE and Javascript / DHTML question

Status
Not open for further replies.

yobrian

Programmer
Jun 11, 2003
2
0
0
US
I am calling a JavaScript as a result of a user clicking my user defined context menu item.

Question:

Is there a way to determine the text of the context menu item selected, i.e. "Copy", or "Paste", from within the script? I can do plenty with external.menuArguments, but I don't see how to find out the actual menu item selected.

I have a couple of menu items that are similiar in functionality and would prefer not to use includes.

thanks,
brian
 
give us some more info, like an example of what you are doing... This woulod help us no end in helping you!
 
Say I've added 2 items to the IE context menu, such as:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\50%]
@="javascript:void(external.menuArguments.document.body.style.zoom=\"50%\")"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\75%]
@="javascript:void(external.menuArguments.document.body.style.zoom=\"75%\")"


Note that the "javascript:..." could actually be a reference to a file, say c:\zoom.js

My question was in c:\zoom.js, could I find out whether the menu item "50%" or "75%" was selected?

thanks,brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top