It is very simple. Just define a function in header part of the HTML. Then decide from where you are going to call the function. In this example i have used button "onclick" event to trigger my javascript function  and also passing an argument. Check the below example.
argument_JS.html
Jan 14, 2010
Subscribe to:
Post Comments (Atom)

 
 

 
 
No comments:
Post a Comment
Saalram.com