Javascript refresh webpage every 5s
<p>I refrence the JS unlock right click script:</p>

<pre><code>javascript:(function() { if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
</code></pre>

<p>when you put the link in the url and enter, you can use right.</p>

<hr>

<p>so I want to make a js link to put in the url and enter, the website will refresh every 5s.
<BR><BR></p>

<pre><code>javascript:(function() {
function refresh() {
             window.location.reload(true);}
setTimeout(refresh, 5000);
})()
</code></pre>

<p>but I can't do that, please help. 
because my English too bad, if u don't understand, ask me.</p>
