Results 1 to 3 of 3

Thread: Disabling browser menu

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    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

  2. #2
    Guest
    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()">

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    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
  •  



Click Here to Expand Forum to Full Width