I am new to javascript. I used the code below in Netscape 7.0 and in
IE 6.0. The Javascript portion does not render in Netscape , but it
does show in IE. Can someone explain why? Any helpful insight would
be appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlins="http://www.w3.org/1999/xhtml">
<head>
<title>Java Script Test</title>
</head>
<body bgcolor="#FFFFF ">
<h1> What is your problem
</h1>
<script language="javas cript"
type="text javascript">
<!-- Hide script from old browsers
document.write( "<h1> Today is </h1>")
// End hiding script from old broswers -->
</script>
</body>
</html>
IE 6.0. The Javascript portion does not render in Netscape , but it
does show in IE. Can someone explain why? Any helpful insight would
be appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlins="http://www.w3.org/1999/xhtml">
<head>
<title>Java Script Test</title>
</head>
<body bgcolor="#FFFFF ">
<h1> What is your problem
</h1>
<script language="javas cript"
type="text javascript">
<!-- Hide script from old browsers
document.write( "<h1> Today is </h1>")
// End hiding script from old broswers -->
</script>
</body>
</html>
Comment