- This topic is empty.
July 8, 2013 at 1:04 am #46191
How to create nonclickable anchor tag? ??July 8, 2013 at 1:29 am #141856
click event should not work. no matter there is link or notJuly 8, 2013 at 1:32 am #141857July 8, 2013 at 1:39 am #141859
may be i am unable to make you understand due to my poor english.
actually i want to create a anchor tag that should be non clickable means if click on it i should be stay there.
may be you understand now.
:|July 8, 2013 at 1:44 am #141860pixelgridParticipant
you can do one of the following
1 – as @Melindrea said dont use an href attribute
3 use another inline element (like a span) and style itJuly 8, 2013 at 1:48 am #141861Historical Forums UserParticipant
<a class="prevent" href="#">Link</a>
July 8, 2013 at 1:50 am #141862chrisburtonParticipantJuly 8, 2013 at 2:21 am #141865
thanking you @AdaheiJuly 8, 2013 at 7:41 am #141888Historical Forums UserParticipant
This would jump you to the top of the page.
Now if you are adding extra functionality and interactivity it would make more sense to manage all the code in one place, external JS file.
Hope that helpsJuly 9, 2013 at 10:24 am #141999jurotekParticipant
I am thoroughly confused. OP never explain under what circumstances he wants to implement something as this. So at the end we end up with something that looks like a link which is not suppose to be clickable but is, with no action on click. So what does something like this convey to user. You just want me to click on it for the fun of it? Should I think at that point that you forgot to hyperlink it or you just fooling around? The predictability and user expectations are right out of the window. There is prolly room for something like this, usually active navigation tab but is it in your case?
- The topic ‘[Closed] How to create nonclickable anchor tag? ??’ is closed to new replies.