Category: Functions
.Functions General
function functionName() { // the JavaScript you want to run } function my_function (some_value, some_other_value) { } Function Included In Definition $('#your-element-id').live('vmousedown', function() { alert("Down") });
Calling functions from links
<a href=”javascript:void(0)” onClick=”javascript:my_function();”>Click here</a> The href can alternatively be set with the URL to use if the users doesn’t have javascript enabled, use Return false in the javascript if you don’t want the link to auto trigger