Test to see if web browser can run java script...
Test to see if web browser can run java script...
- Subject: Test to see if web browser can run java script...
- From: David Siberry <email@hidden>
- Date: Thu, 30 Jun 2005 11:23:34 +0100
Hi,
I have written a script to test to see if a web browser can run java
script my calling the "do script" or "do JavaScript" methods contained
within a browsers dictionary.
I have managed to write a script that works for Safari and Internet
Explorer, but I cant figure out how to write a script for OmniWeb v5.1
I will use the Internet Explorer script as an example because both
OmniWeb and Internet Explorer use the "do script" command where as
Safari uses the "do AppleScript" command.
I would like to port the script below so it will work with OmniWeb v5.1.
Here is the script for Internet Explorer:
try
run script "tell application \"Internet Explorer\"
CloseAllWindows
do script \"window.name\" window -1
end tell"
return true
on error
return false
end try
try
run script "tell application \"Internet Explorer\"
quit application
end tell"
end try
Cheers for help,
Thank you kindly,
David Siberry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden