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
<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