Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OK BOX and History -1

Status
Not open for further replies.

lakeside12

Programmer
Apr 20, 2009
43
CA
Hi

Please can someone help me. I am trying to have a Popup occur and when the OK button is pressed on a Modal dialogue box, Then have the browser goes back one page in it's history

I got this far, the popup works, but not the history, please can someone help,

<html>
<script type="text/javascript">
{
alert("Please correct Review again")
History.back(-1);
}
</script>
</html>


Mnay many thanks
 
history.back() doesn't need an argument. Its just history.back().

Also Javascript is case sensitive, so [red]H[/red]istory is not the same as [red]h[/red]istory.





----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hello Vacunita,

Thank you for the clarification, worked perfectly

Many many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top