Auto-redirecting is the technique of automatically sending a site visitor to another page once s/he has landed on a page. How it can be done Can anybody tell me the codes for it
Auto-redirecting Methods
Collapse
X
-
There are few methods like:
The "Meta Refresh Tag" method
<head>
<meta http-equiv="refresh" content="5;url=pagename.html">
</head>
The "Javascript" method
<head>
<script language="javascript"><!--
location.replace("pagename.html")
//-->
</script>
</head>
The "Form" method
<head>
<script language="javascript"><!--
document.myform.submit()
//-->
</script>
...other head section stuff (Title, Description,etc.)...
</head>
<body>
<form name="myform" action="pagename.html" method="get"></form>
...rest of the page...
More information you can get at:
Last edited by megri; 07-31-2004, 07:23 PM.
Comment