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>
No comments:
Post a Comment