window.open in IE6

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

    #1

    window.open in IE6

    Hi All,

    I have a small question considiring the opening of a new window in
    javascript. As you all know the code below will open a new without any
    bars. But when I tried this code in IE6 it won't run. I have looked for
    some documentation but couldn't find all the 'new' parameters for IE6 to
    open a window without any bars. As far as I know the second argument
    in window.open is no longer there.

    Maybe some people can help me with my search for the paramaeters.

    var theOptions =
    "toolbar=0,scro llbars=0,menuba r=0,locationbar =0,personalbar= 0,resizable=0,s tatus=0";

    theWindow = window.open("in dex.html","hell o",theOption s);
    theWindow.focus ();


    Thanks in advance,

    Ed Schimmel
    Remove the Uppercases in my emailadres (THIS IS NO FUN) for replying.

  • Alan P

    #2
    Re: window.open in IE6

    Hmmmm

    Works fine on my IE

    <HTML><HEAD></HEAD><BODY>
    <SCRIPT LANGUAGE="JavaS cript">
    var theOptions =
    "toolbar=0,scro llbars=0,menuba r=0,locationbar =0,personalbar= 0,resizable=0,s t
    atus=0";
    var theWindow = window.open("in dex.html","hell o",theOption s);
    theWindow.focus ();
    </SCRIPT>
    </BODY></HTML>

    Works fine on IE, but not on Mozilla for some reason :-|


    "Ed Schimmel" <e.THISschISimN OmelFUN@xs4all. nl> wrote in message
    news:400c475a$0 $314$e4fe514c@n ews.xs4all.nl.. .[color=blue]
    > Hi All,
    >
    > I have a small question considiring the opening of a new window in
    > javascript. As you all know the code below will open a new without any
    > bars. But when I tried this code in IE6 it won't run. I have looked for
    > some documentation but couldn't find all the 'new' parameters for IE6 to
    > open a window without any bars. As far as I know the second argument
    > in window.open is no longer there.
    >
    > Maybe some people can help me with my search for the paramaeters.
    >
    > var theOptions =
    >[/color]
    "toolbar=0,scro llbars=0,menuba r=0,locationbar =0,personalbar= 0,resizable=0,s t
    atus=0";[color=blue]
    >
    > theWindow = window.open("in dex.html","hell o",theOption s);
    > theWindow.focus ();
    >
    >
    > Thanks in advance,
    >
    > Ed Schimmel
    > Remove the Uppercases in my emailadres (THIS IS NO FUN) for replying.
    >[/color]


    Comment

    • DU

      #3
      Re: window.open in IE6

      Ed Schimmel wrote:
      [color=blue]
      > Hi All,
      >
      > I have a small question considiring the opening of a new window in
      > javascript. As you all know the code below will open a new without any
      > bars.[/color]

      Not true at all. Many of us have UI pref settings to impose and to veto
      the toolbars we want and we use in windows; that's true for all
      Mozilla-based browsers and Opera. That's true as well for MSIE 6 users
      who can use proxomitron.

      But when I tried this code in IE6 it won't run. I have looked for[color=blue]
      > some documentation but couldn't find all the 'new' parameters for IE6 to
      > open a window without any bars.[/color]

      Why do you want to open a window without any bars?

      As far as I know the second argument in[color=blue]
      > window.open is no longer there.
      >[/color]

      The second parameter is a frame name or a window name.
      [color=blue]
      > Maybe some people can help me with my search for the paramaeters.
      >
      > var theOptions =
      > "toolbar=0,scro llbars=0,menuba r=0,locationbar =0,personalbar= 0,resizable=0,s tatus=0";
      >[/color]

      locationbar is not a valid windowFeature; so everything after
      locationbar=0 should be ignored. Note that personalbar is only supported
      in Mozilla-based browsers; not in MSIE nor in Opera.
      Why would you want to remove window resizability? Why would you want to
      remove scrollbars if content overflows window dimensions? Why would you
      want to remove statusbar?
      [color=blue]
      >
      > theWindow = window.open("in dex.html","hell o",theOption s);
      > theWindow.focus ();
      >[/color]

      Why the focus() call here? In theory, you've just created a new
      secondary window and it should be brought in front of its opener without
      any additional need to bring it on top.

      DU
      [color=blue]
      >
      > Thanks in advance,
      >
      > Ed Schimmel[/color]

      Comment

      Working...