Jan 14, 2010

How to pass parameter or argument to javascript function?

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


No comments:

Post a Comment

Saalram.com

Saalram
Publicize yourself ...
http://saalram.com

Free !!!


Place your Ad here - Free!!!
just drop us a mail ... saalram.service@gmail.com

Free !!!