This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes refreshing window that open a target(_blank) window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "refreshing window that open a target(_blank) window" Watch "refreshing window that open a target(_blank) window" New topic
Author

refreshing window that open a target(_blank) window

kashif iftikhar
Ranch Hand

Joined: Aug 21, 2001
Posts: 43
when we specify target="_blank" target page opened in new window.
i want that when i close that(new window) window the page containg form refreshed automaticly.
i want to do this because i change database in target/new window now to see new valus page must be reloaded/refreshed
------------------
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2573

i want that when i close that(new window) window the page containg form refreshed automaticly.

I assume that your form is on page 1 which opens the page 2 in a new _blank window. Write this line in the body of page 2 (the page which is opened in a new blank window.)
<body onUnload="self.opener.location.reload();">
HTH,
- Manish
[This message has been edited by Manish Hatwalne (edited September 30, 2001).]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: refreshing window that open a target(_blank) window
 
Similar Threads
New browser window
Calling a JavaScript function after the completion of a Struts action
populating one dropdown box depending on the value of other dropdown box
How to refresh the parent page when the child window is submitted?
Child windows gets refresh if parent window is refreshed