Pregunta: | 9645 - COMO DETECTAR SI EL BOTóN BACK Y FORWARD DEL I. EX |
Autor: | armando jose mendoza navarro |
Como detectar si el botón Back y forward del I. Explorer esta activo |
Respuesta: | Ricardo Martínez Zorrero |
No existe una manera directa de detectar si los botones están habilitados , pero si lo puedes deducir lógicamente por las propiedades del "history" . A loq ue me refiero es que si hay un registro en el "history" posterior al que estás visualizando DEBE estar habilitado el "Forward" y si hay almenos uno anterior estará habilitado el "Back".
es decir un script así debe funcionar: if(!IsNull(history.next)) alert("Está habilitado el forward"); if(!IsNull(history.previous)) alert("Está habilitado el back"); |