PDA

View Full Version : history.back() in javascript


uatt
12-31-2002, 12:00 AM
<html><head>
<script Language="JavaScript">
alert("please re-enter¡C")
history.back();
</script></head></html>

The above code is telling the user's pressing and then go to previous page

What if pressing it will re-direct to another new page say index.htm and not the previous one

Thanks for any teaching and I know nothing of js..

chrismiceli
12-31-2002, 12:22 AM
<html><head>
<script Language="JavaScript">
alert("please re-enter¡C")
parent.location.href = "http://www.google.com";
</script></head></html>

uatt
12-31-2002, 10:07 AM
absolutely in compliance with my need
Thanks...