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 Coder
    Join Date
    Oct 2005
    Location
    Delhi
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to hide all toolbars like yahoo,google etc onLoad

    how to hide all toolbars like yahoo,google etc onLoad.
    Actually window.open function cannot be taken into.I need the toolbars to be hidden in the beginning.
    please help

  • #2
    Regular Coder RexxCrow's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    275
    Thanks
    6
    Thanked 2 Times in 2 Posts
    From what I understand that cant be done exactly, this is the solution I worked out with some help of course... Also note, that a window can't close w/o the users permission in most browers (so a confirm box might appear to as the user to close the window or not), FF will instead hide the window to the back of the newly focused window, browers with tabs will most likely let a script close it out from what I have seen. Also, if the user has a good popup blocker this may not work at all:


    Inside the initial window at the JS HEAD area place:

    ht=screen.availHeight-75;
    wd=screen.availWidth;
    window.onload=function(){
    window.open("NewFile.HTML","NameOfNewWindow","width="+wd+",height="+ht+",top=0,left=0,resizable");


    Inside the new window JS HEAD area place:

    opener.close();self.focus();

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,618
    Thanks
    0
    Thanked 645 Times in 635 Posts
    On any decent web browser the Javascript does not have access to update anything outside of the web page and can only open new browser windows when your visitor clicks on a link. If they have toolbars installed then they want them there and you have no right to try to interfere with them. If they didn't want them there then they would delete them.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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