how to use function instead of link in href code example Example: a href call funtion <a href="javascript:yourFunction();">