
April 26th, 2004, 08:58 AM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 23
Time spent in forums: 54 m 50 sec
Reputation Power: 0
|
|
|
Change window's attributes Onload?
Hello Everybody,
My question is the following. Can i Use the OnLoad function to open the main window without tollbar, menubar etc. I want to do
this without clicking on a link or button. Is it possible for the main page? I've tried the following:
<script language="JavaScript">
window.open ('', '', 'width=200,height=200,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no')
oldwindow = window.self;
oldwindow.opener = window.self
oldwindow.close();
</script>
but the problem is that the first window is visible until it closes. Is it possible to hide it someway?
Also, is it possible to create a page with a link that opens such a window (without tollbar, menubar etc) and create a shortcut for
that link in order to achieve the aforementioned?
that link and open tha window in order to achieve
|