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

    Aug 30, 2021 · 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. javascript - What does `void 0` mean? - Stack Overflow

    Dec 5, 2012 · Although undefined can generally be trusted in modern JavaScript environments, there is one trivial advantage of void 0: it's shorter. The difference is not enough to worry about …

  3. href="javascript:" vs. href="javascript:void (0)" - Stack Overflow

    javascript:undefined; javascript:void 0; javascript: With the exception that undefined can be overridden by declaring a variable with the same name. Use of void 0 is generally pointless, …

  4. Что такое javascript:void(0);? - Stack Overflow на русском

    Jan 8, 2015 · href = "javascript:void(0);" добавляют, чтобы при нажатии на ссылку, которая выполняет не свою прямую функцию, страница не прокручивалась вверх, а всё …

  5. What is the point of void operator in JavaScript?

    What does "javascript:void(0)" mean? 13. Help me understand javascript:void(null) 3.

  6. JavaScript: what does "void 0" mean? - Stack Overflow

    Jul 29, 2016 · The void operator evaluates the given expression and then returns undefined. The void operator is often used merely to obtain the undefined primitive value, usually using …

  7. javascript - What is "void 0"? - Stack Overflow

    Mar 22, 2014 · The void operator is often used merely to obtain the undefined primitive value, usually using “void(0)” (which is equivalent to “void 0”). In these cases, the global variable …

  8. Which "href" value should I use for JavaScript links, "#" or ...

    Sep 26, 2008 · Using javascript:void(0) avoids all of the above headaches, and I haven't found any examples of a downside. So if you're a lone developer then you can clearly make your …

  9. javascript void functions - Stack Overflow

    void(): This operator allows inserting expressions that produce side effects into places where an expression that evaluates to undefined is desired. The void operator is often used merely to …

  10. onclick - # or javascript:void (0)? - Stack Overflow

    Aug 21, 2011 · I prefer javascript:void(0) over # because it does not alter the address bar by putting a # there (which may affect any future scripts that use/alter the URL). But better than …

Refresh