Get Page Url In Ie Context Menu Extension
I am using IE as my browser, what I want to do is : 1. to do right click in IE page, then click a custom menu which call an external script in my local. 2. this external script is
Solution 1:
Make sure you followed the steps which I shared about adding context menu to IE. Then it's enough to use the following script as content of your html file to get url of the page.
You can get the url from document object of the window:
<scripttype="text/javascript">var parentwin = external.menuArguments;
var url = parentwin.document.URL;
alert(url)
</script>
Post a Comment for "Get Page Url In Ie Context Menu Extension"