Re: Test to see if web browser can run java script...
Re: Test to see if web browser can run java script...
- Subject: Re: Test to see if web browser can run java script...
- From: "Gary (Lists)" <email@hidden>
- Date: Thu, 30 Jun 2005 07:20:57 -0400
"Gary (Lists)" wrote:
> As atonement:
And with Safari...
(A)
-- with a blank window open; errors with no window
tell application "Safari" set js to do JavaScript "window.location" in
document 1 -- any javascript
-- "" (no error, js evaluated)
(B)
-- with a blank window open :: errors with no window
tell application "Safari" to set js to do JavaScript "eval(2+2);" in first
document -- any javascript
-- "4"
(The previous example for IE should also have said "4" as the result of test
(B) ... I pasted the wrong line.)
--
Gary
_______________________________________________
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