Forum Moderators: open
<SCRIPT LANGUAGE="Javascript">
var browser = navigator.appName
if (browser == "Microsoft Internet Explorer")
url=("clients.htm");
else
url=("features.htm")
document.location.href=url;
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function WindowOpen() {
msg=window.open('features.htm', 'Sample', 'toolbar=no',
'location=no',
'directories=no',
'status=yes',
'menubar=yes',
'scrollbars=no',
'resizable=no',
'copyhistory=yes',
'width=755','height=480');
}
//-->
</SCRIPT>
<body onLoad=WindowOpen()>
What I want is for the redirect script to recognize the browser, either explorer or netscape, then initiate the onLoad=WindowOpen()
If you have any recommendations for me, so that my users can first:
1. be redirected, based on their browser, and
2. go to either page, based on the onLoad=WindowOpen()
Sorry if this inquiry is confusing.
1. First Page:(demo4.htm)
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE
function popup() {
var newWin = window.open("features2.htm", "method_desc", "status=no,width=300,height=200")
}
//STOP HIDING -->
</SCRIPT>
</head>
<BODY onLoad="popup()">
2. Second Page (features2.htm)
<SCRIPT LANGUAGE="Javascript">
var browser = navigator.appName
if (browser == "Microsoft Internet Explorer"){
WindowOpen();
}else{
url=("features3.htm")
document.location.href=url;
}
</SCRIPT>
So, what should happen is when my features2.htm is launched in Netscape, that page will be redirected to features3.htm. However, when the page is redirected it freezes up and the curser blinks. Sorry to keep on bothering you about this problem. I'm almost their but still have these problems.
Thanks
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE
function popup() {
var newWin = window.open("features2.htm", "method_desc", "status=no,width=300,height=200")
}
//STOP HIDING -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
var browser = navigator.appName
if (browser == "Microsoft Internet Explorer"){
WindowOpen();
}else{
url=("features3.htm")
document.location.href=url;
}
</SCRIPT>
</head>
<BODY onLoad="popup()">
A Netscape user will be redirected to features3.htm, but not as a pop up window. Do you know any way I could fix this?