I have a main page which displays some information.
User can enter more information by clicking on link, which opens a new window. When user is finished entering data, the window is closed.
How do I reload the main page to reflect the updated information upon close of the newly opened window?
I've found javascript that reloads current page, but I haven't found anything that reloads a page in another window.
Reload main page after info entered into newly opened window
Moderator: General Moderators
According to my source this only works in Netscape...
But here you go anyway:
Main Window:
From the opened page:
Since it only works in NN it's not much good, how about using frames?
But here you go anyway:
Main Window:
Code: Select all
<script>
function winopen() {
window.open("whateva.html"."SWindow","");
}
</script>Code: Select all
<script>
function RefereshPage(){
opener.location.href='the url of the main page';
}
</script>- Bill H
- DevNet Resident
- Posts: 1136
- Joined: Sat Jun 01, 2002 10:16 am
- Location: San Diego CA
- Contact:
Put this in the window that is closing. It will refresh the original window.
Code: Select all
<script>onload=function(){opener.location.reload(true);self.close()}</script>