...

View Full Version : scrollbars problem



gazza
03-23-2005, 12:21 AM
I have opened a new window with an event handler i.e. onClick=window. open(url,status=no,menubar=no,scrollbars=no,resiza
ble=no), and this window does not have scroll bars.

I then call a JavaScript function containing; window.location=new url, to open a new url in the same window, but the new url opens and the window now has scroll bars. Can anyone tell me what is happening here please. I don't want scroll bars on the window.

warhammerdude20
03-23-2005, 01:53 AM
var MY_NEW_WINDOW=window.open("blah.html","blah","scrollbars=no");


function openNewURLInSameWindow(){

MY_NEW_WINDOW.location.replace("thenewurl.html");

}


You see, you have to give your window a name to acces it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum