Open the webpage without scrollbar,location...

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

    Open the webpage without scrollbar,location...

    Dear all,

    I have a html code like

    <a href="product.h tml" target=new>prod uct</a>

    Although the file "product.ht ml" can be opened at the new page, but with
    scrollbar, menu, location, and so on, please help me to write the javascript
    code or others in order to remove all such features when open this page,
    thanks.

    Regards,
    Simon


  • lallous

    #2
    Re: Open the webpage without scrollbar,locat ion...

    Hello,

    Use javascript and the window.open() method.

    Example:
    window.open('ht tp://www.yoursite.co m/', 'windowName', 'scrollbars=no' );

    Regards,
    Elias
    "simon lee" <thomas@yahoo.c om> wrote in message
    news:bqk20a$l6v $1@hfc.pacific. net.hk...[color=blue]
    > Dear all,
    >
    > I have a html code like
    >
    > <a href="product.h tml" target=new>prod uct</a>
    >
    > Although the file "product.ht ml" can be opened at the new page, but with
    > scrollbar, menu, location, and so on, please help me to write the[/color]
    javascript[color=blue]
    > code or others in order to remove all such features when open this page,
    > thanks.
    >
    > Regards,
    > Simon
    >
    >[/color]


    Comment

    • DU

      #3
      Re: Open the webpage without scrollbar,locat ion...

      lallous wrote:[color=blue]
      > Hello,
      >
      > Use javascript and the window.open() method.
      >
      > Example:
      > window.open('ht tp://www.yoursite.co m/', 'windowName', 'scrollbars=no' );
      >
      > Regards,
      > Elias[/color]

      This will not work reliably in Opera 7.x and Mozilla 1.3+ since users
      have the capabilities to impose scrollbars if they are needed. From the
      beginning, it should have been asked why is it important or desirable to
      remove the widget by which an user can notice that there is more content
      than what appears within the rendered area of the window (visual
      notification) and by which an user can reach such content (standard
      browser functionality). It always goes against the webdesigner's own
      best interests to remove scrollbars.

      In many cases, to avoid scrollbars from appearing, one only needs to
      control the margin and padding on the body element and to set the
      overflow to auto for MSIE 5+ for windows. Again, removing scrollbars
      when they are needed, that is when content overflows window dimensions
      goes against sane accessibility to content and standard usability.

      One last thing. As coded, the window.open() call will remove as well the
      window resizability and the statusbar. I do not know a single user who
      believes that a crippled window (no scrollbars, no resizability) like
      that is suitable for surfing.
      What is the purpose of removing the statusbar? The statusbar should be
      the toolbar responsible for relaying to the user genuine reliable
      non-altered browser information about connection, download progress, url
      addresses, http requests, secure connection - SSL icon (padlock)-.
      Removing statusbar or spamming the statusbar with advertisements,
      solliciting is always perceived as excessive force and abusive powers by
      users.

      DU

      Comment

      • Stephen Poley

        #4
        Re: Open the webpage without scrollbar,locat ion...

        On Wed, 3 Dec 2003 15:05:46 +0800, "simon lee" <thomas@yahoo.c om> wrote:
        [color=blue]
        >I have a html code like
        >
        > <a href="product.h tml" target=new>prod uct</a>
        >
        >Although the file "product.ht ml" can be opened at the new page, but with
        >scrollbar, menu, location, and so on, please help me to write the javascript
        >code or others in order to remove all such features when open this page,
        >thanks.[/color]

        Suppose a reader's font-size settings (or whatever) mean that the page
        is larger than the new window. How is he/she supposed to read it if you
        have removed the scroll-bars?

        If you want to people to read your site, leave their scroll-bars alone.

        --
        Stephen Poley

        Comment

        • Andrew Murray

          #5
          Re: Open the webpage without scrollbar,locat ion...

          this site www.javascript.com should have a copy & paste script for what you're
          after.


          "simon lee" <thomas@yahoo.c om> wrote in message
          news:bqk20a$l6v $1@hfc.pacific. net.hk...[color=blue]
          > Dear all,
          >
          > I have a html code like
          >
          > <a href="product.h tml" target=new>prod uct</a>
          >
          > Although the file "product.ht ml" can be opened at the new page, but with
          > scrollbar, menu, location, and so on, please help me to write the javascript
          > code or others in order to remove all such features when open this page,
          > thanks.
          >
          > Regards,
          > Simon
          >
          >[/color]


          Comment

          Working...