Opening links from multiple pages in specific tab/window |
Opening links from multiple pages in specific tab/window |
AlternatorDelux |
Sep 18 2022, 10:09 AM
Post
#1
|
Group: Members Posts: 1 Joined: 18-September 22 Member No.: 28,562 |
I'm well aware that this is usually a bad idea, but for the internal use of several people this would help massively with day-to-day work.
I have links that are set to open in a seperate tab or window (depending on browser setting). To prevent an additional window from being opened every time links are clicked after the first one, I have the links name a target, like this: <a href="b.html" target="window2">New Window</a> This works as intended when the links are all being opened from a single page. But what I need is for it to work that way even when the links are being opened from different pages. |
Christian J |
Sep 18 2022, 02:32 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,722 Joined: 10-August 06 Member No.: 7 |
I don't know if that can be done with HTML alone. Maybe with the javascript "window.opener" and/or "window.closed" properties, but I don't know any details.
|
Makron |
Oct 3 2022, 01:10 PM
Post
#3
|
Group: Members Posts: 2 Joined: 3-October 22 Member No.: 28,574 |
Hello! Try testing it in a regular html online editor. I succeeded.
|
Lo-Fi Version | Time is now: 26th September 2024 - 05:58 PM |