Jump to content


Javascript Help (If Else)


  • This topic is locked This topic is locked
No replies to this topic

#1 Paint

    Young Padawan

  • Members
  • Pip
  • 88 posts

Posted 13 March 2006 - 11:25 AM

Okay, I am really new to javascipt, and I cannot get my first script to work. Can anyone help idetify the problem?

<html>
<head>
<title>Browser Check</title>
</head>
<body>
<script language="javacript" type="textjavascript">
if (navigator.appName == "Microsoft Internet Explorer") {
document.write("You are running Microsoft IE. This website has been previewed in IE, and everything works right.")
}
else {
document.write("You are not running IE, this website may look out of place or incorrect.")
}
</script>
</body>
</html>

Edit:
Someone on another board emailed me. The problem has been solved. This topic can be deleted.

Edited by Paint, 13 March 2006 - 01:33 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users