General Community > Scripting Help
redirect issue
writeto:
It is bad html practice to use refresh because on some browser you will lose the ability to use th back button.
Tyris:
well... you can click the back button twice really quickly ;)
but yeah.. it is pretty dodgy...
still has its use tho.
Saleh:
--- Quote from: writeto on October 09, 2003, 03:20:33 PM ---It is bad html practice to use refresh because on some browser you will lose the ability to use th back button.
--- End quote ---
do you have a better way ?
because I noticed that it wouldn't work if I 'Backwarded' to the redirect page ..
writeto:
<HTML><HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="Javascript">
var x = 10
var y = 1
function startClock()
{
x = x-y
document.frm.clock.value = x
setTimeout("startClock()", 1000)
if(x==0)
{
location.replace("http://google.com");
}
}
</SCRIPT>
</HEAD>
<BODY onLoad="startClock()">
This page will redirect in :
<FORM NAME="frm">
<INPUT TYPE="TEXT" NAME="clock" SIZE=2 >
</FORM>
</BODY></HTML>
writeto:
Formatting got a little screwed up but oh well. If you don't want to use javascript I don't know a better way but I am far from a web guru like [Unknown].
Andrew
Edited to boost ego of [Unknown]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version