Lotus Notes FAQ Visit Our Sponsor!

Can you make a link that lets the user jump back two web pages?

There are two methods of doing this. You can use Javascript passthru HTML:
<SCRIPT language=javaScript>
  history.go(-2)
</SCRIPT>

Or you can use hidden HTML input fields:

On the first form, place a computed for display field named http_referer in the first form. Place another formula on this form named CreateBackStash with a formula of:

"["+"<input type=hidden name=BackStash value=\""+http_referer+"\">]"

On the second form, place an editable field called BackStash, but make this field hidden in Notes. In the $$Return field of this form, use BackStash as the URL you want to return to.


Applies to Notes Versions: 4, 4.5, 4.6, 5
Last Modified: September 8, 1999