Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. How can I find out whether a page of iframe has been loaded completely or not?

How can I find out whether a page of iframe has been loaded completely or not?

Scheduled Pinned Locked Moved Web Development
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ankur Bakliwal
    wrote on last edited by
    #1

    How can I find out whether a page of iframe has been loaded completely or not? Is there any event like onLoad, onUnload for iframe? Or is there any method to find out?? Thanks in adv.

    Thanks, Ankur Bakliwal

    D 1 Reply Last reply
    0
    • A Ankur Bakliwal

      How can I find out whether a page of iframe has been loaded completely or not? Is there any event like onLoad, onUnload for iframe? Or is there any method to find out?? Thanks in adv.

      Thanks, Ankur Bakliwal

      D Offline
      D Offline
      Dmitry Khudorozhkov
      wrote on last edited by
      #2

      IFRAME has an 'onload' event in MS IE browser; in other browsers... in depends. However, IFRAME has one event that works everywhere ok - onreadystatechange.

      ifrm.onreadystatechange = handler;

      Within 'handler', you will need to check ifrm.readyState property , it should be "complete" followed by "interactive". (I don't remember the exact state codes, look at the W3C site). Here are some other solutions. Hope it helps, - Dmitry.

      ------------------------- Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).

      A 1 Reply Last reply
      0
      • D Dmitry Khudorozhkov

        IFRAME has an 'onload' event in MS IE browser; in other browsers... in depends. However, IFRAME has one event that works everywhere ok - onreadystatechange.

        ifrm.onreadystatechange = handler;

        Within 'handler', you will need to check ifrm.readyState property , it should be "complete" followed by "interactive". (I don't remember the exact state codes, look at the W3C site). Here are some other solutions. Hope it helps, - Dmitry.

        ------------------------- Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).

        A Offline
        A Offline
        Ankur Bakliwal
        wrote on last edited by
        #3

        Thanks for this information. but f u give me some ex. of that that'll be very helpful for me

        Thanks, Ankur Bakliwal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups