Hello World: JavaScript
Posted by Joys of Programming on in JavaScript
JavaScript is useful to improve the layout of an HTML page giving the programmers to create a page of choice based on various parameters (dyanamically). A simple javascript function will look like
<head>
<title>Hello World in JavaScript</title>
</head>
<body>
<script type="text/javascript">
<!--
document.write("Hello World!");
-->
</script>
</body>
Now open your browser and enter the path where you have stored this file
file:///home/joysofprogramming/js/helloWorld.html
and the output will be displayed in the browser
Hello World!
Comments:
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=fe1f38c9-1017-4642-b97c-fad8a85b8992)