Re-Direct to other pages

Hi All,

Could you please give me a simple code to auto redirect from one page to another ?

Thanks
kchoedAsked:
Who is Participating?
 
lexxwernConnect With a Mentor Commented:
i guess ill go ahead locking it.
im making this the answer i guess nobody will object cause im "200%" sure this's the answer.

lexxwern
0
 
lexxwernCommented:
okay
2 ways to do so.
#1 thru meta tags. they go in your <head>
<meta http-equiv="Refresh" content="5;URL=yoursite.com">

#2 thru javascript
<body onload="window.location.href='http://yoursite.com/'">
probably more ways possible

lhn
0
 
lexxwernCommented:
in meta tags the '5' is the number of seconds to wait before redirect.

javascript can also have timer.

lhn
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
lexxwernCommented:
<meta> doesn't work in some browsers and javascript too doesn't work in all browsers, therefore a combo of the both is ideal.

lhn
0
 
lexxwernCommented:
Note proposed answer is not the answer, see comments above.
0
 
brunoCommented:
lexxwern,

as you stated in your very first comment,

"probably more ways possible"


then you should NOT have locked the question!  there is probably only about .05% of cases where it is acceptable to lock a question, and this was NOT one of them.


If you contine to be so "point hungry" as i have seen you be, I will ask the moderators review your behaviour here on the site.


BRUNO
0
 
lexxwernCommented:
okay ill ask the same question again;

just to know what are the other 99.95% of (suitable)answers that could be.

and ya, im here for the points.

lexxwern,
0
 
brunoCommented:
lexxwern,

your GREED for points should NOT affect the user's getting the best help they can from the site.  You seem like a smart guy capable of providing plenty of good help, don't ruin it by being greedy, if you just comment properly the points will come.  I will be watching your activities before I decide whether to involve a moderator.


kchoed,

sorry for having this out in your thread, please accept my apologies.


lexxwern,

if you feel the need to respond to me, please don't do so here, open a Q in either CS or the Lounge, i'll be sure to find it.

Thanks,


BRUNO
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.