Hola,
Gracias por responder rapido.
Lo que quiero es no repetir tanto alert(objeto.atributo):
Código html:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript"> <!--
function alertar(ob){
alert(ob.hola);
alert(ob.chau);
alert(ob.adios);
alert(ob.fuera);
alert(ob.sal);
}
-->
<input name="Botón" type="button" onclick="alertar({hola:'Hola',chau:'Chau',adios:'Adios!!!',fuera:'Fuera de aqui!!',sal:'Sal de aqui'})" value="Probar" />
Gracias
Salu2