1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to detect when iframe is loading?

Discussion in 'HTML & JavaScript' started by cyklotrial, Jul 20, 2009.

  1. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    Hi!

    Is there any way to detect when iframe is loading?

    eg.
    on http://example.com i have this code
    HTML:
    <iframe src="http://google.com" width="800" height="600"></iframe>
    When someone open example.com He will see google page.When he will type anything in searchbar and hit enter url in iframe will change...

    How to detect this change immediately.
    onload will detect it only when page in iframe will be loaded in 100%
    readyState is not working with crossdomain...

    Is there any mathod to do this?

    regards
    Lukas