In some old Javascript we have, we try to determine whether the client
is IE or Netscape (assume for the purposes of this question that the
question can be resolved satisfactorily) and tailor the script to it:
var myOpen=open(url , 'subWin', 'width=600, height=400,*A*r esizable=1,scro llbars=1' );
if ( myOpen && !myOpen.closed )
{
myOpen.focus();
}
*B*
If it's IE, *A* is left=300,top=30 0
If it isn't,*B* is myOpen.screenX= 300; myOpen.screenY= 300;
As of a few weeks ago, we no longer support Netscape 4. Assume that
this code must work only on recent IE and Netscape versions. The
question: Is this distinction still necessary to achieve the same
effect in both browsers? Is there a better way of doing it if it is?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
is IE or Netscape (assume for the purposes of this question that the
question can be resolved satisfactorily) and tailor the script to it:
var myOpen=open(url , 'subWin', 'width=600, height=400,*A*r esizable=1,scro llbars=1' );
if ( myOpen && !myOpen.closed )
{
myOpen.focus();
}
*B*
If it's IE, *A* is left=300,top=30 0
If it isn't,*B* is myOpen.screenX= 300; myOpen.screenY= 300;
As of a few weeks ago, we no longer support Netscape 4. Assume that
this code must work only on recent IE and Netscape versions. The
question: Is this distinction still necessary to achieve the same
effect in both browsers? Is there a better way of doing it if it is?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Comment