Quantcast
Channel: Why use href="javascript:void()? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by JJJ for Why use href="javascript:void()?

Yes, it's a bug. The browser will throw a syntax error when the link is clicked, unless the removePopup() function stops the default action. (If the function does that, it might explain why the...

View Article



Why use href="javascript:void()?

Reading this question : What does "javascript:void(0)" mean? I can understand why <a href="javascript:void(0)" is used - in order to prevent a page redirection.I have come across this code : <a...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images