×

Welcome to TagMyCode

Please login or create account to add a snippet.
2
0
 
0
Language: Javascript
Posted by: Alejandro Aragón
Added: Mar 27, 2012 8:44 PM
Modified: Mar 27, 2012 8:47 PM
Views: 69
Impedir que se pueda regresar a una pagina anterior (Navegador)
- Se debe colocar dentro de la etiqueta <head>
  1. function noBack(){window.history.forward()}
  2. noBack();
  3. window.onload=noBack;
  4. window.onpageshow=function(evt){if(evt.persisted)noBack()}
  5. window.onunload=function(){void(0)}