DOM - More than 5 'window' objects on one page
Posted
by Sid
on Stack Overflow
See other posts from Stack Overflow
or by Sid
Published on 2010-03-21T15:14:36Z
Indexed on
2010/03/21
15:21 UTC
Read the original article
Hit count: 260
Hi,
I'm trying to extract data from one of my websites using Greasemonkey. Problem is, the script runs 6 times because apparently the page loads content from 6 different servers.
So if I put in an alert ("Hey");
the code runs 6 times and I get 6 alerts.
How can I wait for the entire page to load and then start playing with the DOM. Also, I'm using jQuery.
Thanks
© Stack Overflow or respective owner