Reply to Re: href="javascript:func()" vs href="#" onclick="javascript:func()"

Your name:

Reply:


Posted by Jukka K. Korpela on 06/19/06 05:15

Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> scripsit:

> Well, javascript:void is a core javascript construct,

Really? I thought core javascript was ECMAScript.

> Perhaps there is no _specific_ _html_
> spec citing "javascript:void" verbatim, but I hardly consider that a
> good reason to avoid it's usage.

By HTML specifications, the content of an href attribute is a URL (or a
URI), so a specification of the javascript: _URL_ would be needed. This
would not be part of HTML _or_ JavaScript but a separate specification;
normally URL specifications are published as RFCs. It would of course
specify it as a pseudo-URL, which is a URL syntactically only. Anyway, there
is no such specification.

> There is much documentation written
> regarding this usage which certainly seems acceptable and valid by
> all parties concerned.

Browser vendors' documents are not specifications.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[Back to original 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

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