ASP ScriptingJava ScriptingCGI ScriptingHTMLJavaLanguage CERP Education Links

JAVA SCRIPTING

Hiding Java Scripts From Old Browsers

    Older Browsers like Netscape 1.x,Microsoft Internet Explorer Version 3 and earlier and the America Online Browser before version 4 don't understand JavaScript.

<HTML>
<HEAD>
<TITLE>My First Script</TITLE>
<BODY BGCOLOR=WHITE>
<H1><SCRIPT>
<!--Hide script from old browsers
document. write ("Hello, World !")
// End hiding script from old browsers -->
</script></H1>
</BODY>
</HTML>

1. <!-- Hide script from old browsers
    This line opens the HTML comment with the <!-- .
2. document.write("Hello World !")
    Here's the actual JavaScript come.
3. // End hiding script from old browsers-->
    This line starts with  // which signifies a JavaScript comment, and ends with-->   
    which ends an HTML comment.

 


Your Ad Here
Not All Of Your Subscribers Use RSS - AWeber Email Marketing
Your Ad Here