how to refresh an iframe automatically

Viewed 56559

I would like an iframe to refresh itself to the source path specified. What is the easiest way to do this inline with javascript?

thanks,

6 Answers

If you want to refresh an iframe itself.

document.getElementById('iframe');//this may not work

and you can try this.

window.frameElement.src = window.frameElement.src
Related