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

Advertisements
Categories: SQL and .NET Blog
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: