
Code:
- <script type="text/javascript">
- function disp_alert()
- {
- alert("I am an alert box!!");
- }
- </script>
Makes a popup window.

Code:
- <script type="text/javascript">
- document.write("Dancing is fun!");
- </script>
This would make the text "Dancing is fun!".

Code:
- <script type="text/javascript">
- docoument.write("Dancing is fun!")
- //Hello. You can put anything here.
- /* And this for
- Multiple lines.*/
- </script>
The // is a single line comment. You can put anything there on that line and it doesn't effect the code. The /* */ are multiple line comment. You can put anything there till the other */. Note remember that the star isi on the opposite side in the end.

Code:
- <a href="www.gowvshalo.com">
- This</a> Is a link to the my game website.