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

    Aug 18, 2009 · 104 There is a huge difference in the behaviour of # vs javascript:void(0);. # scrolls you to the top of the page but javascript:void(0); does not. This is very important if you are …

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

    Jan 8, 2015 · void(0) — это выражение, получающееся приведением типа константы 0 к void. То есть простое ничего не значащее выражение. Ссылка в таком виде просто ничего не …

  3. ¿Qué significa “javascript:void(0)” en href de la etiqueta a?

    Jun 8, 2017 · ¿Qué significa “javascript:void (0)” en href de la etiqueta a? Formulada hace 8 años y 5 meses Modificada hace 1 año y 2 meses Vista 29k veces

  4. javascript - What does `void 0` mean? - Stack Overflow

    Reading through the Backbone.js source code, I saw this: validObj[attr] = void 0; What is void 0? What is the purpose of using it here?

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

    12 Using 'javascript:void 0' will do cause problem in IE when you click the link, it will trigger onbeforeunload event of window !

  6. What is the point of void operator in JavaScript? - Stack Overflow

    I have also seen this in href attributes: javascript:void(0) which doesn't seem any better than javascript:; So, what is the justification of using the void operator?

  7. I get a javascript:void (0); when I am on some sites, how do I get …

    Mar 15, 2014 · javascript: void (0); is used as a placeholder URL to indicate that an onclick event is tied to the link to do the actual action.<br /> If JavaScript is blocked for some reason then …

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

    Sep 26, 2008 · I use javascript:void(0). Three reasons. Encouraging the use of # amongst a team of developers inevitably leads to some using the return value of the function called like this:

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

    Mar 22, 2014 · 2 void 0 is a way of getting undefined without fail. Some browsers allow overriding the undefined variable, but you can't override void

  10. "javascript:void(0);" vs "return false" vs "preventDefault()"

    Aug 17, 2010 · 19 The only advantage that I can think of to using javascript:void(0) is that it will be supported even by the oldest browsers. That said, I would use one of the other unobtrusive …