Purchase Review Purchase a Book
HTML Scripts Codes
Make a script in HTML

<html>
<head>
</head>
<body>
<script type="text/javascript">
document.write("Hello World!")
</script>
</body>
</html>

This is the most simple script. The scripting language is javascript and what it does is display the "Hello World!" string.


The NOSCRIPT tag

<script type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>
<noscript>Your browser does not support
JavaScript!</noscript>

To handle browsers that dont handle scripts use the NOSCRIPT tag to display alternative html.
Handling old browsers

<script type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>

In old browsers where the SCRIPT tag isnt recognized, use the HTML comment tags so the scripting code isnt displayed.

Hosted by FreeWebs.com