3 ms·
incidentally if you must do this, it's better to use href="javascript:;" rather than href="#" because it won't cause jumps in position for noscript users/when s
by asddubs 6y ago
incidentally if you must do this, it's better to use href="javascript:;" rather than href="#" because it won't cause jumps in position for noscript users/when scripts break
- 7786655 6y agohref="javascript:;" is also bad. It doesn't work if you try to open it in a new tab. Just use a real url!
- reificator 6y agoThere isn't a situation where you must do this. Don't do this. Quick heuristic: if you have a clickable link and I can't open it in a new tab, you should be using a button instead.
- paul_f 6y agohref="javascript:..." is just as bad. I want to hover over a link and see where it goes before I click. That makes navigation fair to the user, as opposed to "guess what's behind door number 3"