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
The problem is likely due to the value of your variables. If they contain special or invalid characters, those needs to be passed through encodeURIComponent before being assigned to window.location.href.
window.location.href