how to keep the appearance effect of hyperlink,but don't jump to another link when click on cell

Answered
yuyuyu asked on September 11, 2017

i want to keep the appearance effect of hyperlink like the underlink、the finger when hood on cell, but i don't want to jump to another link when click on cell. I want to trigger a function to do something.
Regards
Leon

2 answers

Public
Ian Sadovy Ian Sadovy Flexmonster September 11, 2017

Hello Leon,
 
You can try to apply following CSS to a span

text-decoration: underline;
cursor: pointer;

Or you can use regular links and prevent default behavior in the JavaScript handler:

function onLinkClick(e) {
e.stopImmediatePropagation();
// your code
}

Hope it helps.
 
Regards,
Ian 

Public
yuyuyu September 12, 2017

Hi lan
I will try your solution. Many thanks
Regards
Leon

Please login or Register to Submit Answer