|
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]
|