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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE context menu & VBscript

Status
Not open for further replies.

brianashman

Technical User
Dec 11, 2003
15
US
Every example for adding to the IE context menu(like this one) use Jscript. When I try to use VBScript & msgbox instead of the Jscript alert, I get a "permission denied:msgbox" script error.


Works...
Code:
<SCRIPT> x=alert external.menuArguments.document.URL);</SCRIPT>

Doesn't work
Code:
<SCRIPT language="VBscript"> x=msgbox(external.menuArguments.document.URL)</SCRIPT>

How can I get VBscript & msgbox to work?
 
Have you tried a messagebox with just a text string in it? My msgbox's work fine.
 
Just use browser-native alert (window.alert() or simply alert()).
[tt]
<SCRIPT language="VBscript"> window.alert(external.menuArguments.document.URL)</SCRIPT>
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top