• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Test to see if web browser can run java script...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Test to see if web browser can run java script... (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Test to see if web browser can run java script...
  • Next by Date: Re: change category entourage
  • Previous by thread: Re: Test to see if web browser can run java script...
  • Next by thread: Access new Podcast info in itunes
  • Index(es):
    • Date
    • Thread