Including JavaScript in your web page
Where to start? With a simple piece of JavaScript. Create an html file with the following text:
Then open this file in your browser. If you can see the text Cartoon dinosaurs! on the page then congratulations, you've written your first piece of JavaScript.
<html>
<body>
<script type="text/javascript">
<!--
document.write("Cartoon dinosaurs!");
//-->
</script>
</body>
</html>
Then open this file in your browser. If you can see the text Cartoon dinosaurs! on the page then congratulations, you've written your first piece of JavaScript.
Comments
Post a Comment