|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Refresh page
I have this problem:
I open window to add news with java onclick="window.open...". Then I submit form on this new page. What I need is to automaticaly close this page ofter submiting form with <input type="sumbit"...> and automaticaly refersh main page. Is it possible? I now how to close window with close.window, but I am not able to force automatical refresh of main page. Thanks for all advices. |
|
#2
|
|||
|
|||
|
RE: Refresh page
here's a couple of ideas.
In the new window that you pop open, have a function that runs on closing the window. (html body tag) < body onUnload="closer()"> javascript function closer(){ window.opener.location="opener.html"; //make opener.html the filename of // the page that popped this window. this.window.close(); } this might not be the cleanest method, but it does work. |
|
#3
|
|||
|
|||
|
RE: Refresh page
Very interesting idea. I will try it soon. Thanks for help.
|
|
#4
|
|||
|
|||
|
RE: Refresh page
It really works, thanks very much for tips
|
|
#5
|
|||
|
|||
|
RE: RE: Refresh page
Ok, I think I have how this works! You have a window that open another window. Did some stuff in this other window and then in the other window you have this code that closes the 2nd window and refreshes the first window right? If this is so, where does everything go? I'm been searching for something like this and NOTHING has worked
Quote:
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Refresh page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|