Using Javascript history function
Hi all,
I have a series of webforms and I want a button on every form to call a separate webform to display the history of the webforms accessed since the initial webform. I was thinking about placing nothing but href links in the new window (displayed from clicking the button) to reference the javascript function of history. For example, when the new page is launched after the button is clicked it would bring up :
<a href="(onClick="history.go(-1);")>Go Back</a>
<a href="(onClick="history.go(-2);")>Go Back</a>
<a href="(onClick="history.go(-3);")>Go Back</a>
and so on, but I was wondering, will this recognize the actual history from the page where the button was launched or the actual page where this code is contained (in the new window)
If there is an easier way to do this please let me know. Thanks for you help!
|