Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to use onclick in href tag

$("#myHref").on('click', function() {
    document.getElementById(".myDiv").style.flexGrow = "5";
     window.location = "http://www.google.com";

});`
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #onclick #href #tag
ADD COMMENT
Topic
Name
1+7 =