I have a problem with window.location.href.
I\'m trying to redirect to a page with the following code:
window.location.href = \"juego.html\"+\'?modo
Use encodeURIComponent() to escape your url:
encodeURIComponent()
window.location.href = encodeURIComponent("juego.html?modoJuego=" + modoJuego + "&etapa=" + etapa + "&rango=" + rango);
Works fine on Firefox 23.0, Chrome 28.0.1500.95 and Internet Explorer 10.