Today, I noticed this issue in IE11.
A simple JavaScript redirect (made via location.href = 'newhost...';
) causes the browser to crash.
Does anyone have any idea how can this be fixed?
If it helps this happened using ContactForm7 on wordpress using this method: http://contactform7.com/redirecting-to-another-url-after-submissions/
Internet Explorer doesn’t always play nice with
location.href
orwindow.location.href
in javascript. i.e. more so thehref
function…Try using:
There is a solution to this problem in a WordPress forums post here: https://wordpress.org/support/topic/redirection-crashes-ie-11-perfect-for-all-others
KookRoss says:
If you still get this error even using Assign in IE 11 when redirect from an event, you can use:
To get around the problem