Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
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