I have created a HTML error page which has a button with text Try Again. When the user clicks this button I would like to reload the refering page.
Looking on Google there are a few ways to do this, but I am unsure of which is the best way that will work in the majority of browsers.
Anyone help?
Thanks,
AJ
Your code that handled the original HTTP request resulting in the error knows that URL, so it should simply create a link back on the error page; just a simple link, or whatever else that’s appropriate for your overall site design.
Do not rely on the HTTP “REFERER” value.