Web Analytics Made Easy -
StatCounter customize Explorer's toolbars - CodingForum

Announcement

Collapse
No announcement yet.

customize Explorer's toolbars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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

    Comment


    • #3
      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; Jul 14, 2006, 10:59 AM.

      Comment


      • #4
        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>

        Comment


        • #5
          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

          Comment

          Working...
          X