Link to home
Start Free TrialLog in
Avatar of aplelois
aplelois

asked on

redirect

hello
Is there a way of making this in html ?

<script>
window.location="http://www.web.com/"
</script>
ASKER CERTIFIED SOLUTION
Avatar of Eternal_Student
Eternal_Student
Flag of United Kingdom of Great Britain and Northern Ireland 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
Or you can just build a link:

<a href="http://www.web.com/">Link</a>
Avatar of mach-
mach-

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();