?
Solved

Re-Direct to other pages

Posted on 2002-03-17
8
Medium Priority
?
191 Views
Last Modified: 2010-04-09
Hi All,

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

Thanks
0
Comment
Question by:kchoed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
8 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 6875900
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
 
LVL 12

Expert Comment

by:lexxwern
ID: 6875901
in meta tags the '5' is the number of seconds to wait before redirect.

javascript can also have timer.

lhn
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 6875903
<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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 12

Accepted Solution

by:
lexxwern earned 200 total points
ID: 6875909
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
 
LVL 12

Expert Comment

by:lexxwern
ID: 6875912
Note proposed answer is not the answer, see comments above.
0
 
LVL 18

Expert Comment

by:bruno
ID: 6878149
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
 
LVL 12

Expert Comment

by:lexxwern
ID: 6880061
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
 
LVL 18

Expert Comment

by:bruno
ID: 6880260
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question