u/HappyFruitTree

Is possible to clear the target name that was used to open the page?

EDIT: I found a solution! See my comment below.

Scenario:

Page B is opened from page A using a link with a target name.

<a href="B.html" target="foobar">link</a>

Motivation:

The target attribute is used because page A is a form and don't want to lose information when linking to page B.

Page B is linked from multiple places on page A (and it's likely that the user would want to look at page B multiple times when filling in the form on page A), target="_blank" is therefore not used to avoid having the user ending up with countless of page B tabs.

The problem:

The user might decide to use the tab that displays page B to visit page C, but if page B is opened again from page A then page C will be "lost".

The "solution":

If I could somehow disconnect the target-name-relationship between page B and page A when the user leaves page B so that page A will open a new tab next time it tries to open page B, that would be great, but I can't find a way to do it. Is it possible?

reddit.com
u/HappyFruitTree — 8 days ago