About 1,910,000 results
Open links in new tab
  1. What does "javascript:void (0)" mean? - Stack Overflow

    Aug 18, 2009 · Usage of javascript:void(0) means that the author of the HTML is misusing the anchor element in place of the button element. Anchor tags are often abused with the onclick …

  2. What Does javascript:void(0) Mean? - GeeksforGeeks

    Jul 12, 2025 · javascript:void (0) is commonly used in HTML to create a link that doesn’t perform any action or navigate to a new page. When placed in the href attribute of an <a> tag, it allows …

  3. JavaScript Void 0 – What Does javascript:void (0); Mean?

    Oct 27, 2020 · With void, it tells the browser not to return anything (or return undefined). Another use case of links with the javascript:void(0) reference is that sometimes, a link may run some …

  4. What Does JavaScript:Void (0) Mean? An In-Depth Reference

    Sep 8, 2024 · But with javascript:void(0), instead of navigating or reloading, the browser will run any JavaScript event handlers defined on that link. This technique keeps the page static while …

  5. JavaScript void Operator - W3Schools

    javascript:void (0) is an expression commonly found in HTML, particularly within <a> tags. It serves to prevent the default action of a link, which is to navigate to a new page or reload the …

  6. What is javascript:void (0) and How it Works? - frontendgeek.com

    Jan 5, 2025 · javascript:void(0) is used to add a fake navigation to the HTML element. It can be used as part of HTML elements which support navigation targets with href property.

  7. Demystifying javascript:void (0) - TheLinuxCode

    void – This is the void operator we just discussed. (0) – The 0 here is simply an argument passed to void. void will evaluate it, but discard the result and return undefined.

  8. What Javascript Void (0) actually means? Explained - Creative Tim

    Dec 16, 2021 · By using javascript:void(0), the <a> tag will not send you to other web address. It will also not refresh the page as links usually do when you don't specify a value for the href …

  9. An Introduction to JavaScript Void 0: Explained With Examples

    Jan 25, 2025 · When you use JavaScript void 0, it will return an undefined primitive value. This will prevent the browser from opening a new or reloading the web page and allowing you to call …

  10. Here's what javascript:void(0) actually means - sebhastian

    Feb 27, 2021 · In short, putting javascript:void(0) as the value of href attribute will create a link that does nothing. The example link above will run the printPage() function when clicked …