[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
History Object
Supposedly history.back should give the URL of the previous document in the
history list, but it isn't working. Anyone see how to fix this code:
<SCRIPT LANGUAGE="LiveScript">
<!-- hide this script tag's contents from old browsers
document.write('<FORM METHOD="post">');
string='<INPUT TYPE="button" VALUE="<- Back to ';
string=string+history.back+' onClick="goHist(-1)">'+'<br>';
document.write(string);
string='<INPUT TYPE="button" VALUE="-> Forward to ';
string=string+history.forward+' onClick="goHist(1)">'+'<br>';
document.write(string);
document.write('</form>');
//<!-- done hiding from old browsers -->
</SCRIPT>
Thanks,
Kevin Prigel
kprigel@inf.net