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 Jim Moe on 06/19/06 06:39

Neredbojias wrote:
>>>
>>> FYI, another best way is:
>>>
>>> <a href="javascript:void(0)" onclick="func()">
>>
"javascript:" is not a standard protocol. Not like "http:", "ftp:",
"news:", "ldap:", "mailto:" etc. See <http://www.faqs.org/rfcs/rfc3986.html>.
It has become a common practice among browser authors to support the
non-standard "javascript:" because some organizations (Netscape,
Microsoft) had decided to advocate it.
>
> Well, javascript:void is a core javascript construct, [...]
>
Not really. It is a construct in common use.
It is misapplication of one type of construct (URI) to workaround the
limitations of another (onclick=). Such is no longer the case.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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