You are here: Re: href="javascript:func()" vs href="#" onclick="javascript:func()" « HTML « IT news, forums, messages
Re: href="javascript:func()" vs href="#" onclick="javascript:func()"

Posted by Adrienne Boswell on 06/18/06 08:00

Gazing into my crystal ball I observed "Jukka K. Korpela"
<jkorpela@cs.tut.fi> writing in
news:hc6lg.5463$W65.574@reader1.news.jippii.net:

> Using href="javascript:void(0)" does not conform to any published
> specification, since there is no such spec that defines javascript:
> URLs. Besides, it fails even on some old browsers that do not
> recognize such URLs (or pseudo-URLs), despite supporting JavaScript.
>
>

Yes, and it even fails on some modern browsers, like Opera. AFAIK, Opera
doesn't like href="javascript:anything". Opera is my default browser, and
I'm redoing a site that has tons of links like this - none of 'em work - so
I am replacing them with plain hrefs.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация