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

    Aug 18, 2009 · 35 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 event to create …

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

    Jun 8, 2017 · El operador void evalúa la expresión dada y devuelve undefined La razón de usar esta expresión en un href de un link es porque este atributo produce una redirección a una versión de …

  3. 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 !

  4. 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

  5. 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?

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

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

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

    Mar 20, 2009 · 92 I've seen some people using void operator in their code. I have also seen this in href attributes: javascript:void(0) which doesn't seem any better than javascript:; So, what is the …

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

    Sep 26, 2008 · Explains the difference between using "" and "javascript:void(0)" as href values in JavaScript links.

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

    Aug 21, 2011 · 0 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 both of them, I …

  10. Why use javascript:void(0) instead of # in href? - Stack Overflow

    Dec 19, 2013 · Explains the use of javascript:void(0) in href attribute, its purpose, and advantages over other methods for handling links in web development.