make anchor tag clickable without href
Asking for help, clarification, or responding to other answers. CSS3 Transitions: replace them entirely on mobile? In HTML, if the href attribute is not present while specifying the URL of the page, it will not be a hyperlink. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Find centralized, trusted content and collaborate around the technologies you use most. Since you are using a custom onClick event handler I would recommend using a button instead of a link. Spans should do it then. This makes the HTML Anchor Link (HyperLink) once again enabled i.e. anchor tag is not clicable. Why is Singapore considered to be a dictatorial regime and a multi-party democracy at the same time? clicks: Trigger click event in clicking an anchor link; href attributed are not supported in Angular application. Here is another example for you to understand the anchor tags and href better. MOSFET is getting very hot at high frequency PWM. Sometimes it makes more sense to bind the click trigger to a different key. links are clickable. Why is this usage of "I've to work" so awkward? here. Now I'm trying to use <a> tag. now it works, but the cursor will not change when it is hovered over the clickable element. Why would Henry want to close the breach? and