E
eBob.com
I am getting into javascript because I want to extend the IE context menu.
I've made the registery changes such that my context menu addition results
in the execution of file:///C:\IEScriptGames\testscript.htm. If the file
contains
<SCRIPT>
alert(external.menuArguments.document.URL);
</SCRIPT>
I get the expected result.
However, if the file contains
<SCRIPT>
document.write("I love JavaScript");
</SCRIPT>
nothing happens. No error message, nothing.
However, if I enter the URL for the file above (the "I love JavaScript" one)
in the IE address window, then, after OKing a few security questions, I do
see the expected result.
I sense that this is not strictly a javascript question but rather pertains
to javascript when executed as the result of an IE context menu addition.
If document.write just doesn't work when executed as the result of an IE
context menu addtion then I wonder what else might not work and whether I
need to find another way to achieve what I am trying to do.
It's easy to find introductory javascript info on the web, and it's easy to
find how to make additions to the IE context menu on the web. But, so far,
I have not been able to find any introductory javascript material which is
specific to IE context menu additions.
I'll be grateful for any assistance anyone can provide.
Thanks, Bob
I've made the registery changes such that my context menu addition results
in the execution of file:///C:\IEScriptGames\testscript.htm. If the file
contains
<SCRIPT>
alert(external.menuArguments.document.URL);
</SCRIPT>
I get the expected result.
However, if the file contains
<SCRIPT>
document.write("I love JavaScript");
</SCRIPT>
nothing happens. No error message, nothing.
However, if I enter the URL for the file above (the "I love JavaScript" one)
in the IE address window, then, after OKing a few security questions, I do
see the expected result.
I sense that this is not strictly a javascript question but rather pertains
to javascript when executed as the result of an IE context menu addition.
If document.write just doesn't work when executed as the result of an IE
context menu addtion then I wonder what else might not work and whether I
need to find another way to achieve what I am trying to do.
It's easy to find introductory javascript info on the web, and it's easy to
find how to make additions to the IE context menu on the web. But, so far,
I have not been able to find any introductory javascript material which is
specific to IE context menu additions.
I'll be grateful for any assistance anyone can provide.
Thanks, Bob