• 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:14:41 -0400

"Gary (Lists)" wrote:

> Anyway, why don't you just use the provided JavaScript method for
> determining whether Java is enabled?

I totally mis-read the subject.  The remainder of my message stands -- I
don't understand the script.

However, you were not trying to determine Java status.

As atonement:

(A)
-- with a blank window open _AND_ with no window open
tell application "Internet Explorer" to set js to do script
"window.location" -- any javascript
--> "about:blank?untitled=yes"

(B)
-- with a window open :: does NOT work with no window open (no error, no
result)
tell application "Internet Explorer" to set js to do script "eval(2+2);" --
any javascript
--> 1

A is the ticket, I'd guess.
--
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

  • Follow-Ups:
    • Re: Test to see if web browser can run java script...
      • From: "Gary (Lists)" <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: Test to see if web browser can run java script...
  • Previous by thread: Re: Test to see if web browser can run java script...
  • Next by thread: Re: Test to see if web browser can run java script...
  • Index(es):
    • Date
    • Thread