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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Ontario, CANADA!
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide that toolbar from within the page?

    Hi, I'm somewhat new to writing JS, so any help would be appreciated.

    I'm trying to get a page to resize itself (no problem) and hide the address bar, toolbar, status bar when it loads.

    I used this code to resize the window upon loading:
    Code:
    <html>
    
    <head>
    <title>whatever</title>
    </head>
    
    <body onload="resize()">
    
    <script>function resize(){
    window.moveTo(0,0)
    window.resizeTo(440,400)
    }
    </script>
    
    </body>
    
    </html>
    But I can't find a way to remove the toolbars etc. from the window without generating the window from another page. I just want it to remove them when it loads. I searched all the references I could find, and all the tutorials on JavaScriptKit.

    Any ideas?

    Thanks in advance

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In order to prevent hostile web sites from totally hijacking the user's browser session all browsers will refuse to let a script alter the window in the fashion you want. The only way to get there is to create your own NEW window as you have already found.

  • #3
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Ontario, CANADA!
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your reply. At least I know it can't be done.


  •  

    Posting Permissions

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