Replace the text in each text field below with the correct JavaScript object, property, method, function name or comment. Click the test your code! button and see your JavaScript code in action.

 
<html>
<head>

<script language = "JavaScript">
if (1 == "Netscape") {

    2 ("You know what? You're using Netscape Navigator!");
} else if(navigator.appName == "Microsoft Internet Explorer") {
    document.write("You know what? You're using Microsoft Internet Explorer!");
} </script>

<title>JavaScript client's browser example</title>
</head>

</body>
</html>

 




Ask questions & get answers at the JavaScript forum >>

Back to example index

©2000 Joe Sriver, www.sriver.com