Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

redirect

hello
Is there a way of making this in html ?

<script>
window.location="http://www.web.com/"
</script>
0
aplelois
Asked:
aplelois
  • 2
1 Solution
 
Eternal_StudentCommented:
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=another.html">

The 5 means it will redirect to another.html after 5 secs.
0
 
Eternal_StudentCommented:
Or you can just build a link:

<a href="http://www.web.com/">Link</a>
0
 
mach-Commented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now