tags:

views:

405

answers:

2

Hi,

Within my scenario, I have a button within an iframe section of my page that performs some database processing.

What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed.

Would appreciate the javascript that I can trigger within the iframe, that will reload the main window holding the iframe.

Thanks. Tony.

+2  A: 

window.parent.location.reload();

Jeff Walden
+8  A: 
window.top.location.reload();
Matthew Flaschen
+1 for using window.top to make sure the main page is being targeted.
peirix
does this work with IE6?
tonsils
Yes, tonsils...
Matthew Flaschen
Thanks the reload answer - what about performing a page refresh using javascript in ie6?
tonsils
What happens if the main page is inside a frameset??
rahul