[SOLVED] Click link; then go back
Posted: Tue Nov 01, 2022 11:48 pm
In my main document I have places where I want the users to be able to jump to another web page.
When they are done on that page, I'd like them to click on a button and return to the same place they were at on the maim document.
Here's the code I use to send them from the main page to another web page:
Once they are on that page, at the bottom I'm using the following code to have that page close and go back to the page they came from - hopefully in the exact place where they left the page. Here's that code:
I've also tried this code, but still doesn't work:
I'm using Firefox version 106.0.2. Tried it on Microsoft Edge v106.0.1370.42 and Google Chrome v99.0.4844.51; doesn't work on any of them.
Maybe because I'm using target="_blank" is causing the problem?
When they are done on that page, I'd like them to click on a button and return to the same place they were at on the maim document.
Here's the code I use to send them from the main page to another web page:
Code: Select all
I've created a <a href="trains-modern-AFT.htm" target="_blank">separate web page</a> with all the details.
Code: Select all
<a class="BTN MENU" href="javascript:history.go(-1)">Return to "My Model Train Collection" Main Page</a>
Code: Select all
<a class="BTN MENU" javascript:history.back()">Return to "My Model Train Collection" Main Page</a>
Maybe because I'm using target="_blank" is causing the problem?