Wednesday, June 3, 2009

Printing in Javascript - Document.Write

Printing in Javascript is simple and involves the Document.write function. Document.write is used to output any kind of text to the screen, for example.


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


Will print a simple "Hello World" to the screen, your most basic program and output using javascript (or any language).

Welcome to Javascript Teacher!

Welcome to Javascript Teacher, where you can learn all about the popular client/browser side programming languages known as Javascript (not Java!). I hope you are able to learn a lot here and to pick up some valuable tools! Have fun. Let me know if you have any questions!