It seems like the standard pattern for calling a JavaScript function when text is clicked is the following: <a href="#" onclick="callSomeJSFunction();">Click Me</a> The problem I have often encountered is that clicking the link causes the browser to jump to the top of the page if you have scrolled at all. Users do not like unexpected [...]