Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

a tag do nothing on click

<a href="javascript:void(0);">
<a href="javascript:;">
Comment

a tag do nothing on click


<span class="fake-link" id="fake-link-1">Am I a link?</span>

.fake-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

Comment

PREVIOUS NEXT
Code Example
Javascript :: electron hide top bar 
Javascript :: update react app 
Javascript :: javascript key exists 
Javascript :: npm remove dev dependencies from node_modules 
Javascript :: javascript open url 
Javascript :: js number 2 decimal places 
Javascript :: check if the method is not called in jest 
Javascript :: reactjs sass setup 
Javascript :: select a label from jquery using for attribute 
Javascript :: how to convert seconds into days hours seconds js 
Javascript :: fontawsome icon size react element 
Javascript :: cypress clear session storage 
Javascript :: create react app netlify 
Javascript :: js fetch delete 
Javascript :: jquery if checkbox checked 
Javascript :: Javascript track mouse pointer 
Javascript :: js range 1 to n 
Javascript :: track window resize in vue 
Javascript :: how to get all elements with same class in javascript 
Javascript :: js stop form submit on enter 
Javascript :: border react native 
Javascript :: jquery input text value change event 
Javascript :: jest expect async function to throw error 
Javascript :: get text inside element javascript 
Javascript :: console group 
Javascript :: jquery click on parent but not child 
Javascript :: react router how to go back 
Javascript :: jquery append text to div 
Javascript :: js fake promise with timeout 
Javascript :: javascript change web page title 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =