Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is this Javascript redirect code not working in internet explorer 8?

Tags:

javascript

php

I am using this Javascript to redirect users. It works on FireFox and Chrome, but not in IE8.

window.location ="/public/index/offer?act=search";

Please Help.

like image 880
Manoj Avatar asked Feb 25 '23 07:02

Manoj


1 Answers

Use:

window.location.href = "/public/index/offer?act=search";
like image 79
DanielB Avatar answered Feb 26 '23 23:02

DanielB