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

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...
stakorAsked:
Who is Participating?
 
Cem TürkConnect With a Mentor Senior Software EngineerCommented:
you can use onload event of the  iframe for that.

<iframe src="blabla.html" onload="document.location.reload()"></iframe>
0
 
stakorAuthor Commented:
setTimeout("location.href='http://www.url.com/test.html'",1)

is looking pretty good at the moment... :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.