Hello!
I'm
trying to retrieve the current page's URL in vbScript but whatever I do
doesn't work. I'm new to vbScript and I created a button for IE that
will redirect me to a given url to which I'd like to append the current
page's url.
I've searched the
web for quite some time and I've found some 'solutions' but none of
them worked. If I used a msgbox to display the URL of the current
viewed page it's always empty, no matter what...
I've tried this:
http://www.webcheatsheet.com/ASP/get_current_page_url.php
and this
a = "url"
loc = window.location.href
msgbox(a & ": " & loc)
but loc variable is empty...
I
desperately need this because I have a web directory and I'd like to be
able to add different websites to my directory by clicking the custom
button instead of copying the url, navigate to my web directory and
submitting the url...
Please help!
thank you in advance :)
I've posted the same message on asp.net forums but no luck...(see http://forums.asp.net/t/1434209.aspx)
PS
If I use this code:
set shlApp = createobject("shell.application")
for each wdw in shlApp.windows
Wscript.Echo wdw.locationUrl
next
I get all urls; is there a way to detect the current viewed (tab) page ?