This bit of code used to work, and now it doesn't:
var url = myurl +'?id=' + id + '&phase=' + phase;
window.location = url;
Using the IE dev toolbar I've verified that url has a valid url, and window.location returns the new url...the only problem is the page does not reload.
Does anyone know of any reasons for window.location to now actually load a new document when it is assigned to?
Use window.location.href = url;
instead.
Is your JavaScript running the onclick event from an <input> type="button" or type="submit"?
If your button is type="submit" it won't work unless you stop the submission from executing.
I know this is kind of obvious but I didn't see this in the other comments so I might just add to this thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With