window.location.href not working on IE

Vito

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"+'?modoJuego='+modoJuego+"&etapa="+etapa+"&rango="+rango;

It works perfectly on Firefox and Chrome, however in IE10 the browser freezes and I have to restart it. Sometimes it redirect to the desired page, but the parameters do not pass through. I have been looking for a solution, for example this one:

Window.Location Not Working In IE?

But the proposed solution do not work for me.

Do somebody know how to deal with this?

André Dion

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

window.location.href not working in IE 11

From Dev

window.location.href not working

From Dev

Javascript window.location.href onClick not working

From Dev

$window.location.href NOT WORKING in AngularJS

From Dev

JavaScript window.location.href not working in localhost

From Dev

window.location.href and hash are not working on chrome

From Dev

Javascript window.location.href onClick not working

From Dev

window.location.href not working as expected

From Dev

`window.location.href` not working as intended

From Dev

window.location.href isn't working

From Dev

*ngIf window.location.href.indexOf is not working

From Dev

Redirect a Website to a local folder Using window.location.href() not working

From Dev

window.location.href not working, mod rewrite or jquery?

From Dev

preventDefault stops window.location.href from working

From Dev

window.location.href not working after Response.End()

From Dev

location.href not working

From Dev

String is not a function on window location href

From Dev

window.location = '' is not working ;

From Dev

window location not working javascript

From Dev

angular4 unit test for window.location.href redirect to external link not working

From Dev

location.assign not working in IE

From Dev

Enable and disable window.location.href

From Dev

onclick window.location.href with input value

From Dev

Passing parameter through "window.location.href"

From Dev

onchange event on window.location.href

From Dev

Window.location.href infinite loop

From Dev

Stubbing window.location.href with Sinon

From Dev

Using a variable for if window.location.href.indexOf()

From Dev

window.location.href appending instead of replacing

Related Related

HotTag

Archive