How can I redirect a page to another page with out using JavaScript, I know you can do it with the meta tags some how, but I cant remember?
Thanks
Si
Printable View
How can I redirect a page to another page with out using JavaScript, I know you can do it with the meta tags some how, but I cant remember?
Thanks
Si
Do you mean this meta tag?
Code:<meta http-equiv="Refresh" content="1; URL=page.htm">
You could also use the "Location:" HTTP header.
Yep thats is cheers!Quote:
Originally posted by kayoca
Do you mean this meta tag?
Code:<meta http-equiv="Refresh" content="1; URL=page.htm">
JoshT: Whats this your on about then?
Built into the HTTP protocol is the method for the server to "redirect" a web page request by telling the browser the file's correct location. The refresh meta tag requires the browser to download, process, and briefly display the page before the client is redirected.
Cool thanks!
A situation for ya....
I have index.asp and home.htm
I want index.asp to enter somedata into a database which I can do then forward to home.htm, hopefully with out the user noticing......would this be possible? which way would be best?
I just thought of another way!
A good ole' javascript method:
:cool:Code:<script language="javascript">
function reDirect(){
window.location.href="http://www.yoursite.com";
}
setTimeout("reDirect()", 1);
</script>
Since you're using ASP look into Response.Redirect or Server.Transfer.
Just
<script language="javascript">
<!--
window.location.href="http://www.yoursite.com";
//-->
</script>
after you do what you want