OnClick to new URL?

skibio

Registered Member
Joined
Apr 27, 2008
Messages
94
Reaction score
4
Hi everyone

I have my personal blog and i want when visitor click the first time in my blog be redirected to another blog/website can u give me hint

any idea is appreciated .

Tnx
 
IDK ABOUT blogs but if you can use target="_blank" on the link that will open a new tab with the link,
this is for html idk if it applies for blog
OR byw dont you just put the link in your blog ?
 
Code:
<script type="text/javascript"> window.onclick = function() { setTimeout("window.location.href= 'http://website.com'",2000); } </script>
 
You can insert javascript in the onclick statment just as you would inside script tags.

onclick="javascript:location.replace('yourwebsitelink');"
 
Back
Top