Skip to content

Instantly share code, notes, and snippets.

@lalfaro29
lalfaro29 / unload.js
Created February 22, 2016 18:57
Funcion de jquery que deshabilita el boton ATRAS del navegador, aumenta la seguridad de tus paginas.
$(document).ready(function(){
initControls();
});
function initControls(){
window.location.hash="red";
window.location.hash="Red" //chrome
window.onhashchange=function(){window.location.hash="red";}
}