0

I have below Javascript code. This does not work on IE-7 at production Environment. Could any one assist me that why this is happen over the IE-7?

Is this issue occurred due to any IE security setting ?

Code:

var ajaxData="{URL}";     ** URL: {http://IP:PORT ? SID }

window.location.replace(ajaxData);
  • Can you check the console to see what `window.loation` is returning? the window.location object is differently constructed in different browsers. Also, this is working fine in other browsers? – painotpi Jun 18 '13 at 10:59
  • 2
    how about just window.location = ajaxData; ? – Lidor Jun 18 '13 at 10:59
  • What is it supposed to do? The URL location will not change unless you overwrite it with a new value. – Mathias Schwarz Jun 18 '13 at 11:01
  • http://stackoverflow.com/questions/8809025/window-location-not-working-in-ie – Spudley Jun 18 '13 at 11:05

1 Answers1

1
window.location.href = ajaxData
Skpd
  • 670
  • 3
  • 17