Link to home
Start Free TrialLog in
Avatar of luxurylink
luxurylink

asked on

Using javascript instead of PHPs header function for redirect

Are there any disadvantages to using javascript for redirects vs. PHP's header function?  We are not concerned with users who have javascript disabled.
ASKER CERTIFIED SOLUTION
Avatar of mattjp88
mattjp88
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, you will not get the "You are about to be redirected to a connection that is not secure" warning, so that's a pro :))
SOLUTION
Avatar of Harisha M G
Harisha M G
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<META HTTP-EQUIV="refresh" CONTENT="0;http://www.something.com/somepage"
oops forgot >

<META HTTP-EQUIV="refresh" CONTENT="0;http://www.something.com/somepage">
You must put that between <HEAD> and </HEAD>