On a page several links are mixed with an open window.
As the new windows opens, i would like to display in it the proper page for Msie and Netscape.
The document displayed in the new window contains layers.
There are two types of document: 1 for Ie and 1 for Ns4
On a previous thread MatthewP, programmer, suggested this:
ns4=(document.layers)? true:false
ns6 =(document.getElementById && !document.all)? true:false
ie=(document.all)? true:false
if (ns4){location="netscape.html"}
if (ie){location="msie.html"}
To open my window i use this script:
<SCRIPT LANGUAGE="JavaScript">
<!--
var exwin=null;
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"
{
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
if(exwin!=null)exwin.close();
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
//-->
</SCRIPT>
How can i add code to include a browser dependent display page in my open window event ?
Thanks alot for your help and incomming posts.
Hablablow.
As the new windows opens, i would like to display in it the proper page for Msie and Netscape.
The document displayed in the new window contains layers.
There are two types of document: 1 for Ie and 1 for Ns4
On a previous thread MatthewP, programmer, suggested this:
ns4=(document.layers)? true:false
ns6 =(document.getElementById && !document.all)? true:false
ie=(document.all)? true:false
if (ns4){location="netscape.html"}
if (ie){location="msie.html"}
To open my window i use this script:
<SCRIPT LANGUAGE="JavaScript">
<!--
var exwin=null;
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
if(exwin!=null)exwin.close();
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
//-->
</SCRIPT>
How can i add code to include a browser dependent display page in my open window event ?
Thanks alot for your help and incomming posts.
Hablablow.