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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    customize Explorer's toolbars

    is there a way to customize from a script (also JScript or VBScript) the Internet Explorer's toolbars?
    for example i need to hide ALL the toolbars or hide only the address bar and so on...
    thanks.

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this in the HTML Head tag:

    <script language=JavaScript>

    <!--

    function POP_UP() {
    window.open('/file.html','_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhi story=no,scrollbars=no,width=400,height=375');
    }

    -->

    </script>


    Then for the link:

    "<a href="javascript:POP_UP()"; return true>myText</a>"

    Good luck.
    Rick

  • #3
    New to the CF scene
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can anyone tell me how to get that "mytext" link to popup automatically, then close the page that has the mytext link?

    Also, can the popup's x/y position be set?

    Basically, I'd like to use this to popup a local html file on my system, without having to click the link and cloase the originating page.

    thanks!
    Last edited by coyotewrw; 07-14-2006 at 03:59 PM.

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    You can set the position with left=80,top=80. Security in your browser will probably stop you from closing the window automatically but this is how you would do it.

    Code:
    <html>
    <head>
    <script language="javascript">
    
    function POP_UP() {
    window.open('popup.htm','_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhi story=no,scrollbars=no,width=400,height=375,left=80,top=80');
    window.close();
    }
    
    </script>
    
    </head>
    
    <body onload="POP_UP()">
    
    </body>
    
    </html>

  • #5
    New to the CF scene
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That worked, thanks!

    Yea, XP is asking to confirm closing the window, maybe I can find a workaround to that.

    I used to just view the page via a .vbs file, but unfortunately Maxthon and Firefox both insist on viewing it in them, no matter what settings and associations I try.

    Thanks again


  •  

    Posting Permissions

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