Welcome to WebmasterWorld Guest from 54.158.10.156

Forum Moderators: mack

Message Too Old, No Replies

history.go and refresh

How to go back and refresh in Javascript

     
6:21 pm on Apr 17, 2003 (gmt 0)

New User

10+ Year Member

joined:Apr 17, 2003
posts:2
votes: 0


Hi

I want to redirect the user ONE step back in itīs history. Also, I want the page to refresh when the user gets there.

The scenerior is:

The user is deleting records in a database. They are alerted that the recorded has been deleted, after they click on the button with the ALERT, I wan tthem to go back one page and that same page be refreshed.

Current Javascript Code:
<script language="javascript">
<!--
alert("Record Deleted.")
history.go(-1)
//-->
</script>
<input type=button name=button1 value="Back" onClick="javascript:window.close();">

Thank Anthony

11:23 pm on Apr 17, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2003
posts:1429
votes: 0


Cross posted: please direct your replies to [webmasterworld.com...]