I have a simple piece of code that if a user clicks cancel, then they are returned to the previous page using the attached code. What I would like to do is, if a user clicks the cancel button, then refresh the page they came from. Is this possible? Many thanks
<input type="button" value="Cancel" onclick="history.go(-1);return false;" />
you can either use
metatags suggested in previous answer or check thedocument.referrerproperty against a specific URL and than refresh it manually via javascript.edit
in 1.html you will have:
and in the 2.html you just need this: