Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1045 How can I automatically redirect the user to another page as soon as they hit my page?

irt.org | Knowledge Base | JavaScript | Redirect | Q1045 [ previous next ]

Q1045 How can I automatically redirect the user to another page as soon as they hit my page?

Try:

<html>
<head>
<script language="JavaScript"><!--
if (document.images)
    location.replace('http://somewhere.com/page.htm')
else
    location.href = 'page.htm';
//--></script>
<noscript>
<meta http-equiv="Refresh" content="3;url=http://somewhere.com/page.htm">
</noscript>
</head>
</html>

Feedback on 'Q1045 How can I automatically redirect the user to another page as soon as they hit my page?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.