Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Window resizing, still showing toolbar and menubar

    Im a noob to javascript and am learning php on the fly. I wish to create a window that opens to a certain size without the menubar and toolbar present. I have the width and height down, when i enter the controls for the menubar and toolbar they dont go away.

    Here is the code


    <head>
    <title>Garment</title>

    <script language=javascript>
    window.resizeTo(300,600), 'titlebar=no',' personalbar=no', 'menubar=no';
    </script>
    </head>


    Thanx for the replies, and sorry for the dumb question.

    -soianyc

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    You can only control the visibility of the menubar, location, status and the like if you open a new window via javascript. You can't do that in the main window. Here's how to use window.open method.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •