I'm trying to be clever and considerate towards users, but once again, I've run into a "design" issue.
I have a number of pages on a website where I've chosen to remove the default navigation and replace it with a simple "back" button.
The back button functions like this:
href="javascript:history.back()"
I've also "no-indexed" these pages, so in theory all is good.
However, I've one more concern - it's probably never going to happen, but it would be good to know how to resolve it.
Suppose the user bookmarks the page. At present there's no way back, so I was wondering if it was possible to create a default href="/"
but override it in some way if there is history. In fact amending the JavaScript function would suffice if I was able to determine if any history existed.
Is this possible? I'm no JS guru, so I might be trying to achieve something that isn't achievable.