[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: History Object



Kevin Prigel wrote:
> 
> 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 ';

Are you missing an end quote " in the above line, after VALUE somewhere?


>    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

-- 
Michael S. Darrin
Legislative Data Processing Center
Pennsylvania General Assembly

msd111@psu.edu 
msd@palegis.cmic.state.pa.us