call javascript function from html href code example Example: a href call funtion <a href="javascript:yourFunction();">