new window script question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wolf and Billie

    #1

    new window script question

    Hi everyone,

    I'm by no means a javascript expert, but frequently use a few lines to
    create a new browser window in which the actual site can be viewed:

    function start(page) {openwin = this.open(page, "ctrlwindow ",
    "toolbar=no,men ubar=no,locatio n=no,scrollbars =no,resize=no,
    width=600,heigh t=500");}

    The problem I'm having is that in Netscape this displays perfectly, but
    in IE I'm getting scroll bars in every frame of the page. Is there a
    simple solution for this or should I just buckle up and finish teaching
    myself css? (I'm already using a 0 body-margin css line, which does the
    trick in Netscape.) Dropping the frames will probably be a suggestion as
    well.

    Any information or help would be appreciated. Thanks in advance!
    Wolf

  • Reply Via Newsgroup

    #2
    Re: new window script question

    Wolf and Billie wrote:[color=blue]
    > Hi everyone,
    >
    > I'm by no means a javascript expert, but frequently use a few lines to
    > create a new browser window in which the actual site can be viewed:
    >
    > function start(page) {openwin = this.open(page, "ctrlwindow ",
    > "toolbar=no,men ubar=no,locatio n=no,scrollbars =no,resize=no,
    > width=600,heigh t=500");}
    >
    > The problem I'm having is that in Netscape this displays perfectly, but
    > in IE I'm getting scroll bars in every frame of the page. Is there a
    > simple solution for this or should I just buckle up and finish teaching
    > myself css? (I'm already using a 0 body-margin css line, which does the
    > trick in Netscape.) Dropping the frames will probably be a suggestion as
    > well.
    >
    > Any information or help would be appreciated. Thanks in advance!
    > Wolf
    >[/color]

    Your window.open I believe should use scrollbars=0 instead of scrollbars=no

    Secondly - you say that you are getting scrollbars in every frame - Do
    you mean every window, as opposed to every frame (frames can exist
    inside windows)? If you mean every frame, then that has something to do
    with the <FRAME> and <FRAMESRC> tag and not javascript.

    randelld

    Comment

    • Michael Winter

      #3
      Re: new window script question

      On Mon, 05 Apr 2004 03:58:18 GMT, Reply Via Newsgroup
      <reply-to-newsgroup@pleas e.com> wrote:
      [color=blue]
      > Wolf and Billie wrote:
      >[color=green]
      >> function start(page) {openwin = this.open(page, "ctrlwindow ",
      >> "toolbar=no,men ubar=no,locatio n=no,scrollbars =no,resize=no,
      >> width=600,heigh t=500");}[/color][/color]

      [snip]
      [color=blue]
      > Your window.open I believe should use scrollbars=0 instead of
      > scrollbars=no[/color]

      You can use any of

      scrollbars=yes
      scrollbars=1
      scrollbars

      to include scrollbars (or any other boolean feature), and any of

      scrollbars=no
      scrollbars=0

      or omit the scrollbars string entirely (the inverse of last line of the
      first group) to remove the scrollbars.

      [snip]

      To the OP: there are very few reasons why you should ever remove chrome
      elements from the browser, especially the ability to scroll or resize a
      window.

      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...