Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick prevent default

<a href="#" onclick="event.preventDefault(); myfunc({a:1, b:2});" />click</a>
 
PREVIOUS NEXT
Tagged: #onclick #prevent #default
ADD COMMENT
Topic
Name
2+9 =