Results 1 to 3 of 3

Thread: frame load event problem

  1. #1
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile frame load event problem

    hello ,
    suppose i have two frame left.html and right.html

    <frameset cols="15%, *" id="fs1">
    <frame src="left.html" name="left" frameborder="1" id=leftId>
    <frame src="right.html" name="right" frameborder="1" id=rightId>
    </frameset>

    is there any way so that i will come to know that right hand side frame is loaded. on the left hand side frame i want to know that right hand side frame is loaded. right hand side frame contains gets reload every time when we click on link. so every time left hand side frame must know that right hand side frame is loaded

    so how come it is possible..........
    Please let me know.........................

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    On left.html:
    Code:
    <script type="text/javascript">
    window.onload=function(){
    	if(parent.frames['right']) // If parent.frames['right'] already loaded
    		alert('Right frame already loaded'); // Show the message
    }
    </script>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile

    But the right frame will get reload each time when i will click on link present in right frame.
    and every time i want to know that (in left frame) right frame is loaded...........................

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
  •