Question

How to add button "Back to X-page", where X-page is name of previous page.

I red this post about Request.UrlReferrer, but don't understand how to get page title.

I try to parse PageRefferrer and is some token exists - i set some name of X-Page, but i can't process all cases. Is there any other solution?

Pas de solution correcte

Autres conseils

You can try below code:

<script>
    document.write('<a href="' + document.referrer + '">Go Back</a>');
</script>

Good luck....

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top