Quantcast
Channel: HTML
Viewing all articles
Browse latest Browse all 110

href="javascript:func()" vs href="#" onclick="javascript:func()"

$
0
0
Howdy!
I was wondering which is better to use:

href="javascript:func()"

OR

href="#" onclick="javascript:func()"

Problem is the second one, anchors to the top of the page which is very
messy in most cases.

Thanks
Ciaran ;c)

Viewing all articles
Browse latest Browse all 110

Trending Articles