09/04/2011, 08:39
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 299
Antigüedad: 17 años, 1 mes Puntos: 2 | |
Respuesta: this.form=form ??? Gracias por tu respuesta Panino5001,
entiendo el codigo de tu post pero sigo sin ver la utilidad de this, en tu ejemplo no fue necesario, no?? y siempre podre acceder al formulario del objeto(mediante la propiedad form) y desde ahi a la propiedad del objeto(mediante form.nameObj.propiedad).
funcion(x) {
alert(x.bt.type);
}
<input type="button" name="bt" onclick="funcion(form)"> |