Rendering Different Content for Scriptable and Nonscriptable Browsers
<HTML>
<BODY BGCOLOR="#FFFFFF">
<A HREF="http://home.netscape.com">
<SCRIPT LANGUAGE="JavaScript">
<!--
document.writeln("<A HREF='http://www.java2s.com'>")
//-->
</SCRIPT>
Where?</A>
<HR>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write("Howdy from the script!<FONT COLOR='#FFFFFF'>")
//-->
</SCRIPT>
If you can read this, JavaScript is not available.
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write("</FONT>")
//-->
</SCRIPT>
<BR>
Here's some stuff afterward.
</BODY>
</HTML>
Related examples in the same category