The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Opening links from multiple pages in specific tab/window
AlternatorDelux
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 18 2022, 02:32 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Makron
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 07:12 AM