Sometimes you may need some tools to make your work to be easier, but in this below sharing knowledge will be helping you some part of the developer or web designer to support your work that everyone called "Redirect". In this tutorial I will give you a code that allows you to create a page or post then it will direct to another post/page or website when the visitor click on the post or page title.
Step 1: Login to blog or website to create a post or page
Step 2: Write any content in the Compose if it is necessary
Step 3: Copy below code and page below the content
a) To redirect to any page or web URL, you need to place your blog URL in "PLACE YOUR URL HERE" to any URL that you want to redirect t.
b) Number "5" is a countdown time that will take 5 seconds to affected, or you can assign it to "0" if you need it directly without waiting any second.
Here is a tip Create a blog post redirect
Step 1: Login to blog or website to create a post or page
Step 2: Write any content in the Compose if it is necessary
Step 3: Copy below code and page below the content
<div style="display: none;">*Note:
<form class="style10" name="counter">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.keosopherth.com/"></a></div>
<span class="style4">
<input id="d2" name="d2" size="1px" style="border: 0 none; width: 22px;" type="text" value="5" /></span>
<span class="style13"><span class="style12"><span style="color: red;"><label id="pause" onclick="pause();" style="cursor: pointer; text-decoration: underline;"></label>
</span></span></span></form>
</div>
<label id="pause" onclick="pause();" style="cursor: pointer; text-decoration: underline;"></label>
<label id="continue" onclick="start();" style="cursor: pointer; display: none; text-decoration: underline;"></label>
<script><!--
//
/*var milisec=0
var seconds= document.counter.d2.value;
function display(){
if (milisec<=0){
milisec=9
seconds-=1
}
if (seconds<=-1){
milisec=0
seconds+=1
}
else{
milisec-=01;
document.counter.d2.value=seconds;
setTimeout("display(0)",100);
}
}
*/
input = document.getElementById("d2");
function start() {
document.getElementById("pause").setAttribute('style', 'display:inline');
document.getElementById("continue").setAttribute('style', 'display:none');
add = setInterval("input.value--",1000);
check();
}
function pause(){
clearInterval(add);
document.getElementById("pause").setAttribute('style', 'display:none');
document.getElementById("continue").setAttribute('style', 'display:inline');
}
function check(){
number = document.getElementById("d2").value;
if(number == 0){
clearInterval(add);
location.href = "PLACE YOUR URL HERE";
exit(0);
}
setTimeout("check()",100);
}
start();
check();
-->
</script>
a) To redirect to any page or web URL, you need to place your blog URL in "PLACE YOUR URL HERE" to any URL that you want to redirect t.
b) Number "5" is a countdown time that will take 5 seconds to affected, or you can assign it to "0" if you need it directly without waiting any second.