Yaz's Blog

I am a php developer. I am a geek. I am a fiction reader. A movie and tv addict.
An XBOX360 player. A snowboarder. A cyclist. A Softball player. A Venezuelan-Canadian.

[tech] stupid (embarrasing) discovery

I just found out that doing this:

a href="#" onclick="$('some_div').show(); return false;" 
on a link, prevents the link from going to that non-existing anchor (#).

So, the page doesn’t move!

ps: javascript, is not my strong point.

Blog comments powered by Disqus