Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

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

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 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