can anybody tell me what is wrong here, I got this shockwave test from
javascript in easy steps but it doesnt open the pages required
<html>
<head>
<script type = "text/javascript">
if ( (navigator.appN ame == "Microsoft Internet Explorer"
&& navigator.appVe rsion.IndexOf ( "Mac" ) == -1
&& navigator.appVe rsion.IndexOf ( "3.1" ) == -1)
|| navigator.plugi ns && navigator.plugi ns [ "Shockwave Flash" ] )
|| navigator.plugi ns [ "Shockwave Flash 2.0" ] )
window.location = "index01.ht ml" ;
else
window.location = "index.html " ;
</script>
</head>
<body>
</body>
</html>
the index01 has a flash content, the index doesnt
TIA
javascript in easy steps but it doesnt open the pages required
<html>
<head>
<script type = "text/javascript">
if ( (navigator.appN ame == "Microsoft Internet Explorer"
&& navigator.appVe rsion.IndexOf ( "Mac" ) == -1
&& navigator.appVe rsion.IndexOf ( "3.1" ) == -1)
|| navigator.plugi ns && navigator.plugi ns [ "Shockwave Flash" ] )
|| navigator.plugi ns [ "Shockwave Flash 2.0" ] )
window.location = "index01.ht ml" ;
else
window.location = "index.html " ;
</script>
</head>
<body>
</body>
</html>
the index01 has a flash content, the index doesnt
TIA
Comment