• 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: JavaScript utilities via AS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: JavaScript utilities via AS?


  • Subject: RE: JavaScript utilities via AS?
  • From: "Steve Goodman" <email@hidden>
  • Date: Thu, 4 Apr 2002 16:10:48 -0600
  • Thread-topic: JavaScript utilities via AS?

>Is there a way to use the javascript *onload* event handler thru the *do
>script* command in IE to test if page loading has finished. I have been
>using this:

I picked this up from the list awhile back:

tell application "Internet Explorer"
Activate
OpenURL "http://mail.yahoo.com/";
--wait for page to fully load (thanks to MacGuy for this routine!)
set frontmost_window to item 1 of {ListWindows}
set wait_flag to ""
repeat until wait_flag = "complete"
set wait_flag to do script "document.readyState" window frontmost_window
end repeat
end tell

HTH

Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: script that imports comments from 9 into X
  • Next by Date: Re: Telling AS to use the OS X version of an app
  • Previous by thread: JavaScript utilities via AS?
  • Next by thread: Telling AS to use the OS X version of an app
  • Index(es):
    • Date
    • Thread