XC: Getting URL infomation from browser
XC: Getting URL infomation from browser
- Subject: XC: Getting URL infomation from browser
- From: Brian Johnson <email@hidden>
- Date: Wed, 3 Oct 2001 14:26:35 -0700 (PDT)
Now for the extra-credit questions: anybody know how to get URLs from
frames _within_ that window? Thomas' rather novel appproach --
tell application "Internet Explorer"
set the_url to do script "javascript:window.location;"
end tell
seems to work in MSIE, when suitably modified, but what about Netscape?
Any suggestions there?
Brian Johnson, Dept of Architecture, University of Washington, Seattle
On Sun, 3 Sep 2000, Oodles of folks wrote something like:
>
> Anyone any ideas on how to get URL of open window in either Netscape or IE
>
> so it can be saved as a string.
>
tell application "Internet Explorer"
>
item 1 of (GetWindowInfo -1)
>
end tell
>
>
tell application "Netscape Communicator"
>
URL of window 1
>
end tell