Friday, 23 December 2011

Redirect blog post to another web page

Redirect blog post to another web page
This task use javascript to redirect blog post to another web page.
Redirect blog post to another web page
1<script>
2var srcUrl = 'URL of blog post';
3var tagUrl = 'URL of new web page';
4var curUrl = window.location + '';
5if (srcUrl != '' && tagUrl != '' && srcUrl.toLowerCase() == curUrl.toLowerCase()) {
6 window.location.replace(tagUrl);
7}
8</script>
<script>
var srcUrl = 'URL of blog post';
var tagUrl = 'URL of new web page';
var curUrl = window.location + '';
if (srcUrl != '' && tagUrl != '' && srcUrl.toLowerCase() == curUrl.toLowerCase()) {
  window.location.replace(tagUrl);
}
</script>

  Protected by Copyscape Online Copyright Protection

No comments:

Post a Comment