
16/12/2009, 09:39
|
| | | Fecha de Ingreso: septiembre-2008
Mensajes: 242
Antigüedad: 17 años, 1 mes Puntos: 1 | |
| cerrar ventana saludos tengo el siguiente codigo :
function exit(){
window.close()
}
y llamo a l funcion asi con un boton
<button type="submit" name="btnExit" id="btnExit" onClick="return exit();">Salir</button>
el tema es que necesito meter dentro de un if esta funcion , de manera que si se cumple el if la pagina llame a la funcion y se cierre , si alguien me puede ayudar gracias |