Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Tuesday, January 3rd, 2006

Time Event
12:57a
Pet Peeve....
Why do people do this.

<a href="#" onclick="somefunction();">Some Link</a>

I was just on a website, that had a lmage as a link. When you clicked on it, it popped the a new window, and the because the href was # it brought me to the top of the page. Totally annoying......


I am a big fan of. gets what you want, and in all browsers with no unexpected surprises.
<a href="javascript:somefunction();">Some Link</a>

<< Previous Day 2006/01/03
[Calendar]
Next Day >>
About LiveJournal.com
Image