Reply to Re: onsubmit

Your name:

Reply:


Posted by Toby A Inkster on 12/03/05 12:00

Neredbojias wrote:

> Dont forget document.getElementById("...")... That's the one I just
> luuuv typing.

That's not a 1:1 equivalent to an HTML attribute though.

..className and .httpEquiv differ from the heuristic that I mentioned
earlier (all DOM properties that have a one-to-one mapping to HTML
attributes are lower case) out of necessity:

* "class" is a reserved word in JavaScript.

* "http-equiv" contains a hyphen which would be interpreted
as subtraction.


You are right about .bgColor though. How annoying. Come to think of
it, .aLink,.vLink and .accessKey. Most of these correspond to deprecated
attributes though.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 16 days, 21:12.]

Gnocchi all'Amatriciana al Forno
http://tobyinkster.co.uk/blog/2008/01/15/gnocchi-allamatriciana/

[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

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