Cita:
Iniciado por HackmanC
Según la especificación del HTML, la etiqueta FORM no tiene el evento OnClick(). Es decir, no debería de existir ese evento, pero algunos browsers sí lo implementan...
aclarar algo sobre ese comentario. tecnicamente cualquier elemento puede contener cualquier evento. una cosa es si ese elemento puede o no producir el evento. pero desde XHTML ciertamente algunos elementos pueden tener ciertos eventos en linea (inline event). ahora bien, en el estandar XHTML si se define que FORM puede tener evento
onclick.
Código:
<!ATTLIST form
%attrs;
action %URI; #REQUIRED
method (get|post) "get"
enctype %ContentType; "application/x-www-form-urlencoded"
onsubmit %Script; #IMPLIED
onreset %Script; #IMPLIED
accept %ContentTypes; #IMPLIED
accept-charset %Charsets; #IMPLIED
>
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
<!ENTITY % events
"onclick %Script; #IMPLIED
ondblclick %Script; #IMPLIED
onmousedown %Script; #IMPLIED
onmouseup %Script; #IMPLIED
onmouseover %Script; #IMPLIED
onmousemove %Script; #IMPLIED
onmouseout %Script; #IMPLIED
onkeypress %Script; #IMPLIED
onkeydown %Script; #IMPLIED
onkeyup %Script; #IMPLIED"
>