Solved

redirect

Posted on 2006-07-15
3
201 Views
Last Modified: 2010-04-09
hello
Is there a way of making this in html ?

<script>
window.location="http://www.web.com/"
</script>
0
Comment
Question by:aplelois
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Eternal_Student earned 500 total points
ID: 17115105
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=another.html">

The 5 means it will redirect to another.html after 5 secs.
0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 17115108
Or you can just build a link:

<a href="http://www.web.com/">Link</a>
0
 
LVL 2

Expert Comment

by:mach-
ID: 17115970
The best way is to send a location header on the server's side. This way it doesn't break the back button.

In PHP: header('Location: page.html'); exit();
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 65
Border and image sizing 5 29
alert(innerHTML); 8 32
REST endpoint query with a parameter 1 16
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

856 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