Let us assume, your javascript function is defined as :
function test() { ... }
You can call this function in the following ways:
1) As as event handler, as in,
onclick="test();"
2) Called directly inside a script tag, as in,
test()
3) On click of a hyperlink, as in,
javascript:test()
by HubPages8 years ago
How to call javascript function
by vaddepalli madhu7 years ago
what is the format for the email in javascript?syntax of the email field in javascript .....
Copyright © 2018 HubPages Inc. and respective owners.
Other product and company names shown may be trademarks of their respective owners.
HubPages® is a registered Service Mark of HubPages, Inc.
HubPages and Hubbers (authors) may earn revenue on this page based on affiliate relationships and advertisements with partners including Amazon, Google, and others.
terms of use privacy policy (0.51 sec)