javascript - how to prevent scroll up on chrome for a href="#" -


so have

 <a href="#" onclick="return false">link</a>  

and return false there wont' scroll when click on it. works in ie , firefox, in chrome still scrolls nonetheless...

how prevent happening in chrome?

thanks in advance

there no spoon

-the matrix

use: <a href="javascript:;">link</a>


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -