permaculture playing cards
The moose likes HTML, CSS and JavaScript and the fly likes parent window refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent window refresh" Watch "parent window refresh" New topic

parent window refresh

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
Requirement: I have a html page(say Browser1) which opens a small window on click of a button.
I enter few info., in the child window and then click submit. The parent window(Browser1) should get refreshed.
The javascript (onSubmit) i have written in child window for the same looks like this...

This works properly..
But if I have another browser window(say Browser 2) open then open the child window from it.. Click on submit of child window.
The "Content_Frame" of Browswer Window 1 is getting refreshed.. which is not acceptable.
The "Content_Frame" of Browser Window 2 should get refreshed since that is the parent of the child window.
Please let me know if you have some inputs.
Thanks in Advance,

Thanks & Regards,<br />Nijeesh.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
try putting opener.refresh(); in the child window window.
I agree. Here's the link:
subject: parent window refresh
It's not a secret anymore!