Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

history.go and refresh

How to go back and refresh in Javascript

     

banuelosa

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

10+ Year Member



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

grahamstewart

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

WebmasterWorld Senior Member 10+ Year Member



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