iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning JavaScript Course: Function - www.itechcollege.com JavaScript Course: Function - www.itechcollege.com
Online Degrees Scholarships & Fellowships Internships Student Financial Aid Study Abroad Itech Bookstore
Free Courses
HTML
JavaScript
CSS
ASP
PHP
JSP
ASP.NET
SQL
AJAX
FTP
XML
Career Center
Job List
Web Jobs
Student Jobs
Computer Jobs
Engineer Jobs
Developer Jobs
Job Search
Resume Writing
Job Interview
Salary Info


itech > courses > JavaScript > Function

Function

Functions are chunks of code.Let's created a simple function:

     function test()
     {
     document.write("Hello can you see me?")
     }

Note that if only this were within your <script></script> tags, you will not see "Hello can you see me?" on your screen because functions are not executed by themselves until you call upon them. So we should do something:

     function test()
     {
     document.write("Hello can you see me?")
     }
     test() 

Last line"test()" calls the function, now you will see the words "Hello can you see me?".

  Back to Index Page
Next Page >>   Embedding and including
write and writeln
Document object
Message box
Message boxt
Variables and Conditions
Variables and Conditionst
Function
Event handler
Form
Link
Date
Window
Frame
 

JavaScript Books
JavaScript Jobs



Bookmark:  del.icio.us digg facebook Reddit Mixx BlinkList Fark Furl NewsVine Simpy Spurl Segnalo Technorati blogmarks Google YahooMyWeb Windows Live



JavaScript Course: Function - www.itechcollege.com
Copyright ©2008, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech