|
-
Oct 5th, 2000, 08:23 AM
#1
Thread Starter
Hyperactive Member
Hi all,
How does one disable the menus,toolbar and status bar of a window when the window is loaded. I would like to do these in the OnLoad event of the window.
Thanks in advance
-
Oct 5th, 2000, 01:22 PM
#2
I don't think you can do this with a main window. But you can with a pop up window.
Code:
<SCRIPT LANGUAGE="JavaScript">
function openWin(){
windowOpen=window.open("",'Open','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=1,width=420,height=420');
windowOpen.document.writeln("<head><title>Welcome!</title></head><body bgcolor='black' text=white>");
windowOpen.document.writeln("<h2><center>Welcome to my pop up window!</h2>");
windowOpen.document.writeln("</body></html>");
}
</SCRIPT>
<body onLoad="openWin()">
-
Oct 5th, 2000, 11:59 PM
#3
Thread Starter
Hyperactive Member
Hi Mathhew,
Thanx for the reply. Well I guess you are correct there's no way one can do this coz the DOM model also doesn't have any properties or methods(toolbar,menu) for the window object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|