Home
> SQL and .NET Blog > Redirect html page – 2 methods
Redirect html page – 2 methods
We often deliver a link to the clients / customers which points to a html page.
Now after the advancements,now if we want to redirect it to another page, we obviously could not publish another url to all our customers. This becomes a tedious process and also the client should not be confused with too many urls.
Thus the HTML redirection is the best way to do this. There are two ways we can do this.
1. Java Script
<script type = "text/javascript">
window.location= "sample.html"
</script>
2. Through meta data
<meta http-equiv="REFRESH" content="2;url=sample.html"></HEAD>
this meta tag has to be places in the head tags.
-Yuva
Categories: SQL and .NET Blog
Comments (0)
Trackbacks (0)
Leave a comment
Trackback