jueves, 16 de junio de 2016

Modificar URL con JavaScript

<script type="text/javascript">
           var newURL = window.location.pathname;                                             
           alert(newURL);                                                                                         
           window.history.pushState("object or string", "Title", newURL);          
 </script>

No hay comentarios.:

Publicar un comentario