What is wrong with this script:
<script>
<!--
function smartclick()
if (navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=4.0)
{
window.location="else
window.location="}
//-->
</script>
Frontpage tells me that there is an error in Line 15 at Char 1, and that it is expecting a '{'. Line 15 is the "else" statement in the code above. I want our netscape users to go to a slightly different webpage when they click on the link. Here is the link code I am using, just in case:
<a href="javascript:smartclick()">Go Back to Main Page</a>
So, netscape users go to staff.html, and IE users go to staff. Why do I get an error with my code? I got the code from Thanks in advance.
<script>
<!--
function smartclick()
if (navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=4.0)
{
window.location="else
window.location="}
//-->
</script>
Frontpage tells me that there is an error in Line 15 at Char 1, and that it is expecting a '{'. Line 15 is the "else" statement in the code above. I want our netscape users to go to a slightly different webpage when they click on the link. Here is the link code I am using, just in case:
<a href="javascript:smartclick()">Go Back to Main Page</a>
So, netscape users go to staff.html, and IE users go to staff. Why do I get an error with my code? I got the code from Thanks in advance.