You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Hello world output on Tue Jun 16, 2009 11:08 am

Admin

avatar
Administrator
Administrator
This tutorial is to basically show you how to output text to the browser using javascript

Example:

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

<script type="text/javascript"> - This means that anything enclosed in this is javascript code

document.write("Hello World"); - Document is an object that refers the the web page. write is a method that means you want to write to the object. Whatever is defined in the parenthesis means that you want to write that to the object.

</script> - this just tells the web page that you are done defining you javascript code.

http://www.sratcon.info

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 
ReedzSolution © 2011 | StaffList | Powered by: Forumotion

Free forum | © PunBB | Free forum support | Contact | Report an abuse | Free forum