Quantcast
Viewing latest article 40
Browse Latest Browse All 110

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

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 latest article 40
Browse Latest Browse All 110

Trending Articles