?
Solved

Redirect after page is done loading everything (Including the iframe)

Posted on 2006-05-18
2
Medium Priority
?
220 Views
Last Modified: 2008-03-17
I am writing a crude webload tester for my server. I am loading the page I want from my server in an iframe. Once the page is loaded (including the iframe contents) I would like to reload the page.

I tried:
<body onload="redirectPage(test.html)">

But, that did not work. Is there an easy way of doing this, or am I using the onLoad command incorrectly?

I'm not all that well versed with Java or Java Script...
0
Comment
Question by:stakor
2 Comments
 

Author Comment

by:stakor
ID: 16710924
setTimeout("location.href='http://www.url.com/test.html'",1)

is looking pretty good at the moment... :)
0
 
LVL 17

Accepted Solution

by:
Cem Türk earned 1404 total points
ID: 16710961
you can use onload event of the  iframe for that.

<iframe src="blabla.html" onload="document.location.reload()"></iframe>
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question