Click to See Complete Forum and Search --> : Open new windows in frames


Tea.Cup
03-06-2003, 01:44 PM
Using this statement I open a window. The problem is that it always adds to the same window in the frame, I need it to blank the window and then start from fresh - removing the previous information and just holding the new info.

Please help

stats='toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","resadtin2",stats)
MsgBox.opener = window;
MsgBox.opener.name = "opener";
MsgBox.document.write("<head><title>Search Results</title>");

Jona
03-06-2003, 05:15 PM
You mean you have a framed site and you want the new window to be cleared of all information when an event occurs? I think I caught that... All right, try using the same window name each time. You can try adding a new variable...

newWin = MsgBox.opener
MsgBox.opener = window;
newWin.name = "Opener";
MsgBox.document.write("the page");

Try that...