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?

没有正确的解决方案

其他提示

You can try below code:

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

Good luck....

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top