Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

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

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

Admin

Admin
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

Create a forum on Forumotion | ©phpBB | Free forum support | Report an abuse | Forumotion.com