javascript to disable the title bar, status bar, and address bar of a window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    javascript to disable the title bar, status bar, and address bar of a window

    I want to disable the title bar, status bar and address bar of a
    window, but I couldn't find the syntax. I tried the following but not
    working. any ideas??

    window.document .statusbar.enab le = false;
    window.document .titlebar.enabl e = false;
    window.document .addressbar.ena ble = false;

    <html>
    <title>hey</title>
    <script type="text/javascript">
    function changetitle()
    {
    alert(window.do cument.title);
    window.document .title = "heyhey";
    window.document .statusbar.enab le = false;
    alert(window.do cument.title);
    }
    </script>
    <body onload="changet itle()">
    </body>
    </html>
  • Randy Webb

    #2
    Re: javascript to disable the title bar, status bar, and addressbar of a window

    Matt wrote:[color=blue]
    > I want to disable the title bar, status bar and address bar of a
    > window, but I couldn't find the syntax. I tried the following but not
    > working. any ideas??[/color]

    Yes. Stop trying to hide something JS has no control over (unless it
    opens a new window).


    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: javascript to disable the title bar, status bar, and address bar of a window

      Matt wrote:
      [color=blue]
      > I want to disable the title bar, status bar and address bar of a
      > window, but I couldn't find the syntax. I tried the following but not
      > working. any ideas??
      >
      > window.document .statusbar.enab le = false;
      > window.document .titlebar.enabl e = false;
      > window.document .addressbar.ena ble = false;[/color]

      Remove ".document" and replace "enable" with "visible" to make it work
      in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
      the title bar, which only the window manager has control over.
      "addressbar " must be "locationba r" then. Using signed scripts you may
      request the UniversalBrowse rWrite privilege to modify the properties in
      recent Mozilla/5.0, too.


      PointedEars
      --
      Come on down to the store, you can buy some more and more and more and more
      (Sonic Youth)

      Comment

      • Matt

        #4
        Re: javascript to disable the title bar, status bar, and address bar of a window

        > Yes. Stop trying to hide something JS has no control over (unless it[color=blue]
        > opens a new window).[/color]


        so do you know some workarounds to my problem? thanks

        Comment

        • Lee

          #5
          Re: javascript to disable the title bar, status bar, and address bar of a window

          Matt said:[color=blue]
          >[color=green]
          >> Yes. Stop trying to hide something JS has no control over (unless it
          >> opens a new window).[/color]
          >
          >
          >so do you know some workarounds to my problem? thanks[/color]

          You haven't told us what the problem is.
          You've asked how to do some things that you shouldn't be trying to do.
          What problem are you trying to solve?

          Comment

          • George Hester

            #6
            Re: javascript to disable the title bar, status bar, and address bar of a window


            "Thomas 'PointedEars' Lahn" <PointedEars@we b.de> wrote in message news:10218234.q m0SAsAVrD@Point edEars.de...[color=blue]
            > Matt wrote:
            > [color=green]
            > > I want to disable the title bar, status bar and address bar of a
            > > window, but I couldn't find the syntax. I tried the following but not
            > > working. any ideas??
            > >
            > > window.document .statusbar.enab le = false;
            > > window.document .titlebar.enabl e = false;
            > > window.document .addressbar.ena ble = false;[/color]
            >
            > Remove ".document" and replace "enable" with "visible" to make it work
            > in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
            > the title bar, which only the window manager has control over.
            > "addressbar " must be "locationba r" then. Using signed scripts you may
            > request the UniversalBrowse rWrite privilege to modify the properties in
            > recent Mozilla/5.0, too.
            >
            >
            > PointedEars
            > --
            > Come on down to the store, you can buy some more and more and more and more
            > (Sonic Youth)[/color]

            It's always a pleasure to read a response which answers the question. Even if
            it is not exhaustive. It's much better then, "don't."

            GH

            Comment

            • Thomas 'PointedEars' Lahn

              #7
              Re: javascript to disable the title bar, status bar, and address bar of a window

              George Hester wrote:
              [color=blue]
              > "Thomas 'PointedEars' Lahn" <PointedEars@we b.de> wrote in message
              > news:10218234.q m0SAsAVrD@Point edEars.de...[/color]

              Please do not write so-called "attributio n novels". The name of the
              precursor's author is sufficient to follow the discussion. The e-mail
              address in the From header is often of little use as it is used as a
              spam(mer) trap (could be a tarpit and the like; as opposed to one in
              the Reply-To header). The message ID of the precursor is contained in
              the References header of the followup. Two or more lines interfere
              with flow of reading, especially with several quotation levels.
              [color=blue][color=green]
              >> Remove ".document" and replace "enable" with "visible" to make it work
              >> in Netscape 6.x (IIRC) and some Mozilla/5.0 nightly builds. Except of
              >> the title bar, which only the window manager has control over.
              >> "addressbar " must be "locationba r" then. Using signed scripts you may
              >> request the UniversalBrowse rWrite privilege to modify the properties in
              >> recent Mozilla/5.0, too.
              >> [...][/color]
              >
              > It's always a pleasure to read a response which answers the question.
              > Even if it is not exhaustive. It's much better then, "don't."[/color]

              Actually, if you read it thoroughly, it *was* a "don't" :)


              PointedEars

              P.S.: Please trim your quotes (to the parts you are referring to).
              --
              "95% of success is showing up."
              -- Mark Twain

              Comment

              Working...