SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    second frame page load in the first frame in frameset

    hi ,
    i have a frameset that contains two frames.
    1)content frame: i have access to this page
    2)main frame : i don't have access to this page
    I need to write a javascript in content frame to check for the page load in main frame since the main frame page takes much time to load the page.
    when i use
    if(window.frames['map'].document.readyState == 'complete')
    {
    }
    I am getting not an object error.
    I am also looking for script to be compatible across the browser.

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the onload event?

    Code:
    <iframe src="http://www.sitepoint.com/forums/showthread.php?t=537029" onload="alert('Iframe has loaded');"></iframe>



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •