Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

7 May, 2024: fms is rebuilding. Don't expect much in that section for quite a few days, maybe longer.


devel / comp.infosystems.www.authoring.html / Re: coding links

SubjectAuthor
* coding linksDale
`* Re: coding linksDale
 +* Re: coding linksDavid E. Ross
 |+- Re: coding linksGrant Taylor
 |+- Re: coding linksDale
 |`* Re: coding linksArno Welzel
 | `* Re: coding linksDavid E. Ross
 |  `- Re: coding linksArno Welzel
 +* Re: coding linksGrant Taylor
 |+- Re: coding linksDale
 |+- Re: coding linksLewis
 |`- Re: coding linksThomas 'PointedEars' Lahn
 `* Re: coding linksLewis
  +- Re: coding linksDale
  +* Re: coding linksArno Welzel
  |`* Re: coding linksLewis
  | +- Re: coding linksDavid E. Ross
  | +* Re: coding linksStan Brown
  | |`- Re: coding linksLewis
  | `- Re: coding linksArno Welzel
  `* Re: coding linksThomas 'PointedEars' Lahn
   `- Re: coding linksLewis

1
coding links

<sknohu$c02$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=150&group=comp.infosystems.www.authoring.html#150

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dale@dalekelly.org (Dale)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: coding links
Date: Tue, 19 Oct 2021 20:40:31 -0400
Organization: https://www.dalekelly.org/
Lines: 11
Message-ID: <sknohu$c02$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 00:40:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5060b85ca1b75ceb28e8a6ec6a4a3a3d";
logging-data="12290"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8Wr5Wv2knyH9u+wpM2NzvHB9zgW2NyY4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:kLLtUt4oa4d6a0+hU3mA9PrzeqE=
Content-Language: en-US
 by: Dale - Wed, 20 Oct 2021 00:40 UTC

Hi!

I know how to code a link.

But can you code that link to open in a new browser tab?

Or a new browser window?

--
Mystery? -> https://www.dalekelly.org/

Re: coding links

<sknpai$ffl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=151&group=comp.infosystems.www.authoring.html#151

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dale@dalekelly.org (Dale)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Tue, 19 Oct 2021 20:53:40 -0400
Organization: https://www.dalekelly.org/
Lines: 25
Message-ID: <sknpai$ffl$1@dont-email.me>
References: <sknohu$c02$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 00:53:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5060b85ca1b75ceb28e8a6ec6a4a3a3d";
logging-data="15861"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oHl1q4eMzOEkDpWXinIi2v17I2i24zJI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:lXrUra/hyhxliEwLQZeI1TvpFrY=
In-Reply-To: <sknohu$c02$1@dont-email.me>
Content-Language: en-US
 by: Dale - Wed, 20 Oct 2021 00:53 UTC

On 10/19/2021 8:40 PM, Dale wrote:
> Hi!
>
> I know how to code a link.
>
> But can you code that link to open in a new browser tab?
>
> Or a new browser window?
>
>

did a web search and found this ...

https://www.w3docs.com/snippets/html/open-hyperlink-in-a-new-window.html

for a new window ...

<p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
will open in a new tab. </p>

can't quite see the new tab

--
Mystery? -> https://www.dalekelly.org/

Re: coding links

<sko13q$152c$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=152&group=comp.infosystems.www.authoring.html#152

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Tue, 19 Oct 2021 20:06:33 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <sko13q$152c$1@gioia.aioe.org>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="37964"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: AVG (VPS 211019-12, 10/19/2021), Outbound message
Content-Language: en-US
X-Antivirus-Status: Clean
 by: David E. Ross - Wed, 20 Oct 2021 03:06 UTC

On 10/19/2021 5:53 PM, Dale wrote:
> On 10/19/2021 8:40 PM, Dale wrote:
>> Hi!
>>
>> I know how to code a link.
>>
>> But can you code that link to open in a new browser tab?
>>
>> Or a new browser window?
>>
>>
>
> did a web search and found this ...
>
> https://www.w3docs.com/snippets/html/open-hyperlink-in-a-new-window.html
>
> for a new window ...
>
> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
> will open in a new tab. </p>
>
> can't quite see the new tab
>
>

Whether the new page opens in a new tab or new window is a function of
the user's setting for their browser. Also, if the user's browser
setting is to open a new tab, whether that tab remains behind the prior
tab or is in front of it is a function of another user's setting.
Nothing you do in the HTML will affect whether the user gets a new
window or a new tab, and nothing will affect whether a new tab is behind
or in front of the prior tab.

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: coding links

<sko9r5$9r2$2@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=153&group=comp.infosystems.www.authoring.html#153

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Tue, 19 Oct 2021 23:30:37 -0600
Organization: TNet Consulting
Message-ID: <sko9r5$9r2$2@tncsrv09.home.tnetconsulting.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko13q$152c$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 05:35:33 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="10082"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <sko13q$152c$1@gioia.aioe.org>
Content-Language: en-US
 by: Grant Taylor - Wed, 20 Oct 2021 05:30 UTC

On 10/19/21 9:06 PM, David E. Ross wrote:
> nothing will affect whether a new tab is behind or in front

That may be the case today. But I remember in the early to mid 2000s
first the pop ups (over / front) and then the pop unders (under /
behind) wars. So there was a way that you could influence things to be
behind or in front years ago. I don't know if it is still the case today.

Then there are pop-up blockers which will thwart this.

And let's not speak about the div tags with Z value that puts them in
front of all of the content in the single page / tab.

--
Grant. . . .
unix || die

Re: coding links

<sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=154&group=comp.infosystems.www.authoring.html#154

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Tue, 19 Oct 2021 23:28:12 -0600
Organization: TNet Consulting
Message-ID: <sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 05:33:08 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="10082"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <sknpai$ffl$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Wed, 20 Oct 2021 05:28 UTC

On 10/19/21 6:53 PM, Dale wrote:
> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
> will open in a new tab. </p>

My experience with this years ago surprised me somewhat.

Don't think of it as a "new tab" so much as a "named tab". Meaning that
the link gets opened in the tab with the name of the target. That tab
will be new if it doesn't already exist. If it does already exist, it
will be the existing window.

With this in mind, I took to having links open in different targets:

<a href="https://www.w3docs.com/" target="w3docs">w3docs</a>
<a href="https://www.wikipedia.com/" target="wikipedia">Wikipedia</a>

The value of the name can be random if you want. But the different
links should use different target values if you want different tabs for
them.

At least that's how I remember things being 10+ years ago.

--
Grant. . . .
unix || die

Re: coding links

<skp071$f8s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=155&group=comp.infosystems.www.authoring.html#155

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dale@dalekelly.org (Dale)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 07:57:24 -0400
Organization: https://www.dalekelly.org/
Lines: 31
Message-ID: <skp071$f8s$1@dont-email.me>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Oct 2021 11:57:21 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5060b85ca1b75ceb28e8a6ec6a4a3a3d";
logging-data="15644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vhYhEJP3oA8UHI4nt/zN2aGQOoVctv0E="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:L+TFoikcyWtjrP86mChqqXRWpIg=
In-Reply-To: <sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>
Content-Language: en-US
 by: Dale - Wed, 20 Oct 2021 11:57 UTC

On 10/20/2021 1:28 AM, Grant Taylor wrote:
> On 10/19/21 6:53 PM, Dale wrote:
>> <p>This <a href="https://www.w3docs.com/"
>> target="_blank">hyperlink</a> will open in a new tab. </p>
>
> My experience with this years ago surprised me somewhat.
>
> Don't think of it as a "new tab" so much as a "named tab".  Meaning that
> the link gets opened in the tab with the name of the target.  That tab
> will be new if it doesn't already exist.  If it does already exist, it
> will be the existing window.
>
> With this in mind, I took to having links open in different targets:
>
> <a href="https://www.w3docs.com/" target="w3docs">w3docs</a>
> <a href="https://www.wikipedia.com/" target="wikipedia">Wikipedia</a>
>
> The value of the name can be random if you want.  But the different
> links should use different target values if you want different tabs for
> them.
>
> At least that's how I remember things being 10+ years ago.
>
>
>

Thank YOU!

--
Mystery? -> https://www.dalekelly.org/

Re: coding links

<skp08v$f8s$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=156&group=comp.infosystems.www.authoring.html#156

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dale@dalekelly.org (Dale)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 07:58:27 -0400
Organization: https://www.dalekelly.org/
Lines: 39
Message-ID: <skp08v$f8s$2@dont-email.me>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko13q$152c$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 11:58:23 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5060b85ca1b75ceb28e8a6ec6a4a3a3d";
logging-data="15644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c7g1NxJiUlhRJhjpjiB4SQNrDMJpBwy8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:vLJSqar7V63L0ILymK3BwoF1XgY=
In-Reply-To: <sko13q$152c$1@gioia.aioe.org>
Content-Language: en-US
 by: Dale - Wed, 20 Oct 2021 11:58 UTC

On 10/19/2021 11:06 PM, David E. Ross wrote:
> On 10/19/2021 5:53 PM, Dale wrote:
>> On 10/19/2021 8:40 PM, Dale wrote:
>>> Hi!
>>>
>>> I know how to code a link.
>>>
>>> But can you code that link to open in a new browser tab?
>>>
>>> Or a new browser window?
>>>
>>>
>>
>> did a web search and found this ...
>>
>> https://www.w3docs.com/snippets/html/open-hyperlink-in-a-new-window.html
>>
>> for a new window ...
>>
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>
>>
>> can't quite see the new tab
>>
>>
>
> Whether the new page opens in a new tab or new window is a function of
> the user's setting for their browser. Also, if the user's browser
> setting is to open a new tab, whether that tab remains behind the prior
> tab or is in front of it is a function of another user's setting.
> Nothing you do in the HTML will affect whether the user gets a new
> window or a new tab, and nothing will affect whether a new tab is behind
> or in front of the prior tab.
>

Thank YOU!

--
Mystery? -> https://www.dalekelly.org/

Re: coding links

<itamg8Fdm02U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=157&group=comp.infosystems.www.authoring.html#157

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 16:13:29 +0200
Lines: 47
Message-ID: <itamg8Fdm02U1@mid.individual.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko13q$152c$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net DLeSDS90c5zcdCe9dwdLbg9zTpSG68ouJa0dFU0oEvWqDU0S/K
Cancel-Lock: sha1:/rTBEVLNTr8WQEIJJeTPhUhuCuY=
In-Reply-To: <sko13q$152c$1@gioia.aioe.org>
 by: Arno Welzel - Wed, 20 Oct 2021 14:13 UTC

David E. Ross:

> On 10/19/2021 5:53 PM, Dale wrote:
>> On 10/19/2021 8:40 PM, Dale wrote:
>>> Hi!
>>>
>>> I know how to code a link.
>>>
>>> But can you code that link to open in a new browser tab?
>>>
>>> Or a new browser window?
>>>
>>>
>>
>> did a web search and found this ...
>>
>> https://www.w3docs.com/snippets/html/open-hyperlink-in-a-new-window.html
>>
>> for a new window ...
>>
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>
>>
>> can't quite see the new tab
>>
>>
>
> Whether the new page opens in a new tab or new window is a function of
> the user's setting for their browser. Also, if the user's browser
> setting is to open a new tab, whether that tab remains behind the prior
> tab or is in front of it is a function of another user's setting.
> Nothing you do in the HTML will affect whether the user gets a new
> window or a new tab, and nothing will affect whether a new tab is behind
> or in front of the prior tab.

Wrong - target="_blank" will always open a link a a new tab or window
and the user can not prevent this.

Therefore I generally recommend against this! I user can always decide
to open a link in a new tab if he wants to - but if target="_blank" is
present a user can NOT force the browser to open the link in the current
tab/window. Mostly this is only done for SEO to keep the current web
site open even if you link to another site.

--
Arno Welzel
https://arnowelzel.de

Re: coding links

<slrnsn096s.g1u.g.kreme@m1mini.local>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=158&group=comp.infosystems.www.authoring.html#158

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!kreme.dont-email.me!.POSTED!not-for-mail
From: g.kreme@kreme.dont-email.me (Lewis)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 14:17:00 -0000 (UTC)
Organization: Miskatonic U
Lines: 16
Message-ID: <slrnsn096s.g1u.g.kreme@m1mini.local>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
Reply-To: g.kreme@gmail.don-t-email-me.com
Injection-Date: Wed, 20 Oct 2021 14:17:00 -0000 (UTC)
Injection-Info: kreme.dont-email.me; posting-host="9b13977e3c9b507c686bfb18260c7818";
logging-data="4055"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+A74mNYSFGbykkQFdJahtX"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:opzrU8QByvihbiwHG+NnUb/fiBs=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
X-Clacks-Overhead: GNU Terry Pratchett
Mail-Copies-To: nobody
 by: Lewis - Wed, 20 Oct 2021 14:17 UTC

In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
> will open in a new tab. </p>

No, the behavior of that is entirely up to the browser (and usually the
user's preferences). It opens a new WINDOW, which the Browser may decide
to open as a tab, or not.

It is also possible to attempt to open a new window using JavaScript, but
most browsers block this as abusive behavior (again, depending on user
preferences, but blocking so-called pop-ups is often the default
behavior).

--
First we must assume a spherical cow.

Re: coding links

<slrnsn0996.g1u.g.kreme@m1mini.local>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=159&group=comp.infosystems.www.authoring.html#159

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!kreme.dont-email.me!.POSTED!not-for-mail
From: g.kreme@kreme.dont-email.me (Lewis)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 14:18:14 -0000 (UTC)
Organization: Miskatonic U
Lines: 30
Message-ID: <slrnsn0996.g1u.g.kreme@m1mini.local>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>
Reply-To: g.kreme@gmail.don-t-email-me.com
Injection-Date: Wed, 20 Oct 2021 14:18:14 -0000 (UTC)
Injection-Info: kreme.dont-email.me; posting-host="9b13977e3c9b507c686bfb18260c7818";
logging-data="4055"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VPG/gL6stoVnksGBk+7b8"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:tN2w2g/Kud9KplvrkV+i/5KB81Q=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
X-Clacks-Overhead: GNU Terry Pratchett
Mail-Copies-To: nobody
 by: Lewis - Wed, 20 Oct 2021 14:18 UTC

In message <sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 10/19/21 6:53 PM, Dale wrote:
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>

> My experience with this years ago surprised me somewhat.

> Don't think of it as a "new tab" so much as a "named tab". Meaning that
> the link gets opened in the tab with the name of the target. That tab
> will be new if it doesn't already exist. If it does already exist, it
> will be the existing window.

> With this in mind, I took to having links open in different targets:

> <a href="https://www.w3docs.com/" target="w3docs">w3docs</a>
> <a href="https://www.wikipedia.com/" target="wikipedia">Wikipedia</a>

> The value of the name can be random if you want. But the different
> links should use different target values if you want different tabs for
> them.

> At least that's how I remember things being 10+ years ago.

s is all correct, but _blank and _new are special cases.

--
Like the moment when the brakes lock/And you slide towards the big
truck/You stretch the frozen moments with your fear

Re: coding links

<skpmf3$1mui$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=160&group=comp.infosystems.www.authoring.html#160

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 11:17:05 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <skpmf3$1mui$1@gioia.aioe.org>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko13q$152c$1@gioia.aioe.org> <itamg8Fdm02U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="56274"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
X-Antivirus: AVG (VPS 211020-0, 10/19/2021), Outbound message
X-Antivirus-Status: Clean
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: David E. Ross - Wed, 20 Oct 2021 18:17 UTC

On 10/20/2021 7:13 AM, Arno Welzel wrote:
> David E. Ross:
>
>> On 10/19/2021 5:53 PM, Dale wrote:
>>> On 10/19/2021 8:40 PM, Dale wrote:
>>>> Hi!
>>>>
>>>> I know how to code a link.
>>>>
>>>> But can you code that link to open in a new browser tab?
>>>>
>>>> Or a new browser window?
>>>>
>>>>
>>>
>>> did a web search and found this ...
>>>
>>> https://www.w3docs.com/snippets/html/open-hyperlink-in-a-new-window.html
>>>
>>> for a new window ...
>>>
>>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>>> will open in a new tab. </p>
>>>
>>> can't quite see the new tab
>>>
>>>
>>
>> Whether the new page opens in a new tab or new window is a function of
>> the user's setting for their browser. Also, if the user's browser
>> setting is to open a new tab, whether that tab remains behind the prior
>> tab or is in front of it is a function of another user's setting.
>> Nothing you do in the HTML will affect whether the user gets a new
>> window or a new tab, and nothing will affect whether a new tab is behind
>> or in front of the prior tab.
>
> Wrong - target="_blank" will always open a link a a new tab or window
> and the user can not prevent this.
>
> Therefore I generally recommend against this! I user can always decide
> to open a link in a new tab if he wants to - but if target="_blank" is
> present a user can NOT force the browser to open the link in the current
> tab/window. Mostly this is only done for SEO to keep the current web
> site open even if you link to another site.

No, you do not understand. The markup target="_blank" will open a new
page without closing the page containing that markup. Whether that new
page is in a new tab or a new window is controlled by the user's
browser, not by the markup.

In the version of SeaMonkey that I use, there are three separate sets of
options:
* For a link intended to open a new window (e.g., target="_blank") when
viewing someone else's Web page, I have the option of (1) replacing the
current window or tab, (2) opening a new tab in the current window, or
(3) actually opening a new window. I have selected option #2.
* When a script wants to open a new window, I have the option of (1)
open a new tab in the current window, (2) replace the current window, or
(3) open a new window. I have selected option #1.
* For a link not in a Web page in my browser but in some other
application (e.g., in an E-mail message [not using SeaMonkey's E-mail],
in the About window of some application), I have the option of (1)
replace the current browser window, (2) open a new tab in the current
browser window, or (3) launch a new browser window. I have selected
option #3.

NOTE WELL: I control where the new Web page appears. The parent Web
page -- my own or someone else's -- or other application does NOT
control this.

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: coding links

<skpvfg$epb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=161&group=comp.infosystems.www.authoring.html#161

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dale@dalekelly.org (Dale)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Wed, 20 Oct 2021 16:51:00 -0400
Organization: https://www.dalekelly.org/
Lines: 21
Message-ID: <skpvfg$epb$1@dont-email.me>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 20:50:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5060b85ca1b75ceb28e8a6ec6a4a3a3d";
logging-data="15147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5gI4orFUFfP5Mllu4hAvCndYt0g1+avk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:qhfbt2/I4OQi0iNz9cYiYzfaL2M=
In-Reply-To: <slrnsn096s.g1u.g.kreme@m1mini.local>
Content-Language: en-US
 by: Dale - Wed, 20 Oct 2021 20:51 UTC

On 10/20/2021 10:17 AM, Lewis wrote:
> In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>
>
> No, the behavior of that is entirely up to the browser (and usually the
> user's preferences). It opens a new WINDOW, which the Browser may decide
> to open as a tab, or not.
>
> It is also possible to attempt to open a new window using JavaScript, but
> most browsers block this as abusive behavior (again, depending on user
> preferences, but blocking so-called pop-ups is often the default
> behavior).
>
>

Thank YOU!

--
Mystery? -> https://www.dalekelly.org/

Re: coding links

<itdalcFt4v8U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=162&group=comp.infosystems.www.authoring.html#162

  copy link   Newsgroups: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: coding links
Date: Thu, 21 Oct 2021 16:09:48 +0200
Lines: 46
Message-ID: <itdalcFt4v8U1@mid.individual.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<sko13q$152c$1@gioia.aioe.org> <itamg8Fdm02U1@mid.individual.net>
<skpmf3$1mui$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 2ox94HZnhATFzXee5WcuFA5Fk4DkZuSpbbY5k2UCxkwCTHbiva
Cancel-Lock: sha1:bus39KNp0dhUJ+6rOE24+w2u+uw=
In-Reply-To: <skpmf3$1mui$1@gioia.aioe.org>
 by: Arno Welzel - Thu, 21 Oct 2021 14:09 UTC

David E. Ross:

> On 10/20/2021 7:13 AM, Arno Welzel wrote:
[...]
>> Wrong - target="_blank" will always open a link a a new tab or window
>> and the user can not prevent this.
>>
>> Therefore I generally recommend against this! I user can always decide
>> to open a link in a new tab if he wants to - but if target="_blank" is
>> present a user can NOT force the browser to open the link in the current
>> tab/window. Mostly this is only done for SEO to keep the current web
>> site open even if you link to another site.
>
> No, you do not understand. The markup target="_blank" will open a new
> page without closing the page containing that markup. Whether that new
> page is in a new tab or a new window is controlled by the user's
> browser, not by the markup.

No - the user can *not* prevent getting a new tab or window.

> In the version of SeaMonkey that I use, there are three separate sets of
> options:
[...]

And *no* option offers to *ignore* targets.

> NOTE WELL: I control where the new Web page appears. The parent Web

No - you don't. If target attribute is present you CAN NOT prevent a new
tab or window to be opened. You can only decide if it's a tab or a
window. But in any case a *new* tab or window *will* open if a link
contains target="_blank".

On the other hand - *without* target="_blank" you *ARE* in control. You
can decide just to click the link and open it in the current tab *or*
you can use the context menu for the link (right mouse button or touch
and hold the link for a while on touch devices) and choose to open it in
a new tab or window.

I hope you understand now what my point is here.

--
Arno Welzel
https://arnowelzel.de

Re: coding links

<itdaphFt4v8U2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=163&group=comp.infosystems.www.authoring.html#163

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Thu, 21 Oct 2021 16:12:01 +0200
Lines: 21
Message-ID: <itdaphFt4v8U2@mid.individual.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net n8NzdVdnvBxwQMBYEb83OQaYl5TbK5EhTmCkeR44+mwTTEJFz3
Cancel-Lock: sha1:VLe7RC8wBlaPTwFOCGgNroJ6c/c=
In-Reply-To: <slrnsn096s.g1u.g.kreme@m1mini.local>
 by: Arno Welzel - Thu, 21 Oct 2021 14:12 UTC

Lewis:

> In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>
>
> No, the behavior of that is entirely up to the browser (and usually the
> user's preferences). It opens a new WINDOW, which the Browser may decide
> to open as a tab, or not.

Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
prevent this if target="_blank" is present.

Therefore I recommend NOT to do this on a regular basis but only for
very special cases where the user will understand *why* a new tab or
window will open when clicking the link.

--
Arno Welzel
https://arnowelzel.de

Re: coding links

<2626935.mvXUDI8C0e@PointedEars.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=164&group=comp.infosystems.www.authoring.html#164

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Followup: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.178.197.192.81!not-for-mail
From: PointedEars@web.de (Thomas 'PointedEars' Lahn)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Followup-To: comp.infosystems.www.authoring.html
Date: Fri, 22 Oct 2021 18:26:53 +0200
Organization: PointedEars Software (PES)
Lines: 33
Message-ID: <2626935.mvXUDI8C0e@PointedEars.de>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me> <sko9mk$9r2$1@tncsrv09.home.tnetconsulting.net>
Reply-To: Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8Bit
Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.192.81";
logging-data="3431197"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: KNode/4.14.10
Cancel-Lock: sha1:fXtG6b0zr3vOaYMQ+AQV1QmjIu0=
X-User-ID: U2FsdGVkX19FlCho1O4D4Y9uODp/+PkdbDVsUXEv1srV5Uytceoypw==
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
 by: Thomas 'Pointed - Fri, 22 Oct 2021 16:26 UTC

Grant Taylor wrote:

> On 10/19/21 6:53 PM, Dale wrote:
>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>> will open in a new tab. </p>
>
> My experience with this years ago surprised me somewhat.
>
> Don't think of it as a "new tab" so much as a "named tab". Meaning that
> the link gets opened in the tab with the name of the target.
> That tab will be new if it doesn't already exist. If it does already
> exist, it will be the existing window.

As defined in the HTML Specification(s), that is not so for certain reserved
“target” attribute values:

"_self": same window/tab
"_blank": new tab (tabbed browsing) or window (windowed browsing)
"_parent": parent frame
"_top": topmost frame

> At least that's how I remember things being 10+ years ago.

Next time, RTFM instead:

<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a>

The “target” attribute can be used with named frames in the same way.

--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Re: coding links

<4375919.LvFx2qVVIh@PointedEars.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=165&group=comp.infosystems.www.authoring.html#165

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Followup: comp.infosystems.www.authoring.html
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.178.197.192.81!not-for-mail
From: PointedEars@web.de (Thomas 'PointedEars' Lahn)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Followup-To: comp.infosystems.www.authoring.html
Date: Fri, 22 Oct 2021 22:11:06 +0200
Organization: PointedEars Software (PES)
Lines: 81
Message-ID: <4375919.LvFx2qVVIh@PointedEars.de>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me> <slrnsn096s.g1u.g.kreme@m1mini.local>
Reply-To: Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8Bit
Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.192.81";
logging-data="3456368"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: KNode/4.14.10
Cancel-Lock: sha1:xP1Ect6oMO4lsNXhToJgn1VKFVE=
X-User-ID: U2FsdGVkX18FdSSvL/gJT47k7X03IYmelnbvTdaneOL29j+ZFmxTyQ==
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
 by: Thomas 'Pointed - Fri, 22 Oct 2021 20:11 UTC

Lewis wrote:

> It is also possible to attempt to open a new window using JavaScript, but
> most browsers block this as abusive behavior (again, depending on user
> preferences, but blocking so-called pop-ups is often the default
> behavior).

The default behavior is often to block popups *that the user did not cause
consciously*, different from what you describe in the first sentence:
*those* popups are NOT blocked by default.

A proper way to do this would be

<a href='foo' target='bar'
onclick='return !window.open(this.href, this.target,
"width=200,height=200")'
>…</a>

The advantage of additionally using client-side DOM scripting here is that
it is more likely that a window will be opened instead of a tab, that
properties of that window can be suggested (here: viewport width and height,
in pixels), and that fallback approaches can be tried (for example, showing
an element instead of a popup if the latter does not work).

However, spaghetti code like above should be avoided, for example by using
a custom method that is only passed the essential information –

<a href='foo' target='bar'
onclick='return !my.open(this, {width: 200, height: 200})'
>…</a>

– or by adding event listeners dynamically (caveat: the listeners will not
work before the document was loaded), for example

document.addEventListener('load', function () {
document.links['link-foo'].addEventListener(
'click',
function (e) {
if (my.open(
e.target || e.srcElement,
{width: 200, height: 200}))
{
e.preventDefault();
return false;
}
},
false);
});

<a href='foo' target='bar' id='link-foo'>…</a>

A possibility for a fallback then would be

let my = {
open: function (target, props) {
let w = null;

if (!(w = window.open(target.href, target.target,
Object.entries(props).map((entry) => `${entry[0]}=${entry[1]}`)
.join(','))))
{
/* If the popup window cannot be created, create an element box
with the content */
if (…)
{
/* If that worked, prevent default action */
w = true;
}
}

/* Prevent default action if any of the above worked */
return w;
}
};

--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Re: coding links

<slrnsn955k.1a23.g.kreme@m1mini.local>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=166&group=comp.infosystems.www.authoring.html#166

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!kreme.dont-email.me!.POSTED!not-for-mail
From: g.kreme@kreme.dont-email.me (Lewis)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Sat, 23 Oct 2021 23:03:17 -0000 (UTC)
Organization: Miskatonic U
Lines: 28
Message-ID: <slrnsn955k.1a23.g.kreme@m1mini.local>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local> <itdaphFt4v8U2@mid.individual.net>
Reply-To: g.kreme@gmail.don-t-email-me.com
Injection-Date: Sat, 23 Oct 2021 23:03:17 -0000 (UTC)
Injection-Info: kreme.dont-email.me; posting-host="0b2a39a8e30b01a6e37a669a802d970d";
logging-data="14887"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RUpVdy3TFPZ+CXPjXoG33"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:ttx4rCGOFxRFz5t6WXJmi5P8BbA=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
X-Clacks-Overhead: GNU Terry Pratchett
Mail-Copies-To: nobody
 by: Lewis - Sat, 23 Oct 2021 23:03 UTC

In message <itdaphFt4v8U2@mid.individual.net> Arno Welzel <usenet@arnowelzel.de> wrote:
> Lewis:

>> In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
>>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>>> will open in a new tab. </p>
>>
>> No, the behavior of that is entirely up to the browser (and usually the
>> user's preferences). It opens a new WINDOW, which the Browser may decide
>> to open as a tab, or not.

> Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
> prevent this if target="_blank" is present.

It certainly is possible, though I don't know if any current browsers
support that user option. But yes, there is nothing preventing a browser
for having an option "Do not allow clicks to open a new window."

> Therefore I recommend NOT to do this on a regular basis but only for
> very special cases where the user will understand *why* a new tab or
> window will open when clicking the link.

Opening new windows for users is a speedy way to piss them off, and
using pop-=up windows is a sure way to lose users and have them never
return to your site.

--
One tequila, two tequila, three tequila, floor.

Re: coding links

<slrnsn95oj.1a23.g.kreme@m1mini.local>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=167&group=comp.infosystems.www.authoring.html#167

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!kreme.dont-email.me!.POSTED!not-for-mail
From: g.kreme@kreme.dont-email.me (Lewis)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Sat, 23 Oct 2021 23:13:23 -0000 (UTC)
Organization: Miskatonic U
Lines: 46
Message-ID: <slrnsn95oj.1a23.g.kreme@m1mini.local>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local> <4375919.LvFx2qVVIh@PointedEars.de>
Reply-To: g.kreme@gmail.don-t-email-me.com
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Oct 2021 23:13:23 -0000 (UTC)
Injection-Info: kreme.dont-email.me; posting-host="0b2a39a8e30b01a6e37a669a802d970d";
logging-data="14887"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VTbzVNXSxH59NjgnGezOc"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:LbANe0U1vlndh9Z3FXPsK4zLGts=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
Mail-Copies-To: nobody
X-Clacks-Overhead: GNU Terry Pratchett
 by: Lewis - Sat, 23 Oct 2021 23:13 UTC

In message <4375919.LvFx2qVVIh@PointedEars.de> Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
> Lewis wrote:

>> It is also possible to attempt to open a new window using JavaScript, but
>> most browsers block this as abusive behavior (again, depending on user
>> preferences, but blocking so-called pop-ups is often the default
>> behavior).

> The default behavior is often to block popups *that the user did not cause
> consciously*, different from what you describe in the first sentence:
> *those* popups are NOT blocked by default.

> A proper way to do this would be

> <a href='foo' target='bar'
> onclick='return !window.open(this.href, this.target,
> "width=200,height=200")'
> >…</a>

thankfully not many people do user-hostile shot like that. If I got to a
site that did that I would drop into the shell at add them to my hosts
list so I could never load the site again.

> document.addEventListener('load', function () {
> document.links['link-foo'].addEventListener(
> 'click',
> function (e) {
> if (my.open(
> e.target || e.srcElement,
> {width: 200, height: 200}))
> {
> e.preventDefault();
> return false;
> }
> },
> false);
> });

Not HTML now, so not really relevant to this discussion. But yeah, don't
do shit like that, it makes people very angry when new windows open on
their screens.

--
Given your quest-heavy lifestyle, there’s no guarantee any of you will live to
see Christmas.

Re: coding links

<sl2gat$1u51$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=168&group=comp.infosystems.www.authoring.html#168

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!aioe.org!3Mhv7/5wGMalT5I1PrEuIA.user.46.165.242.75.POSTED!not-for-mail
From: not_me@not_there.invalid (David E. Ross)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Sat, 23 Oct 2021 19:27:40 -0700
Organization: I am @ david at rossde dot com.
Message-ID: <sl2gat$1u51$1@gioia.aioe.org>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local> <itdaphFt4v8U2@mid.individual.net>
<slrnsn955k.1a23.g.kreme@m1mini.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="63649"; posting-host="3Mhv7/5wGMalT5I1PrEuIA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: AVG (VPS 211023-4, 10/23/2021), Outbound message
X-Antivirus-Status: Clean
 by: David E. Ross - Sun, 24 Oct 2021 02:27 UTC

On 10/23/2021 4:03 PM, Lewis wrote:
> In message <itdaphFt4v8U2@mid.individual.net> Arno Welzel <usenet@arnowelzel.de> wrote:
>> Lewis:
>
>>> In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
>>>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>>>> will open in a new tab. </p>
>>>
>>> No, the behavior of that is entirely up to the browser (and usually the
>>> user's preferences). It opens a new WINDOW, which the Browser may decide
>>> to open as a tab, or not.
>
>> Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
>> prevent this if target="_blank" is present.
>
> It certainly is possible, though I don't know if any current browsers
> support that user option. But yes, there is nothing preventing a browser
> for having an option "Do not allow clicks to open a new window."
>
>> Therefore I recommend NOT to do this on a regular basis but only for
>> very special cases where the user will understand *why* a new tab or
>> window will open when clicking the link.
>
> Opening new windows for users is a speedy way to piss them off, and
> using pop-=up windows is a sure way to lose users and have them never
> return to your site.
>

My Web site includes a glossary of Internet terms, targeted to novices.
(There will always be novices.) Other pages on my site contain terms
defined in that glossary. Where that occurs, I have a link to the term
within the glossary; that link uses target="glossary".

According to the browser in use and its settings, the first time such a
link is clicked, this either opens a new tab or a new window, in either
case at the linked term. Subsequent clicks on links for other terms do
not open another glossary page but shift the existing glossary page to
the new term. This allows the user to maintain his or her place on the
page using the term while also seeing terms defined.

--
David E. Ross
"A Message to Those Who Are Not Vaccinated"
See my <http://www.rossde.com/index.html#vaccine>.

Re: coding links

<MPG.3bdf10046f75ba2198fe3a@news.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=169&group=comp.infosystems.www.authoring.html#169

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news-peer.in.tum.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan_brown@fastmail.fm (Stan Brown)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Sun, 24 Oct 2021 07:39:33 -0700
Organization: Oak Road Systems
Lines: 19
Message-ID: <MPG.3bdf10046f75ba2198fe3a@news.individual.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me> <slrnsn096s.g1u.g.kreme@m1mini.local> <itdaphFt4v8U2@mid.individual.net> <slrnsn955k.1a23.g.kreme@m1mini.local>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net Rp2lr43gJ/dztqgbbalaaA3wi0sFOWB+CoC5rzzFFi31oLXsvl
Cancel-Lock: sha1:7aDHVMkf5DoRHP2dDBkYDYWy6sQ=
User-Agent: MicroPlanet-Gravity/3.0.4
 by: Stan Brown - Sun, 24 Oct 2021 14:39 UTC

On Sat, 23 Oct 2021 23:03:17 -0000 (UTC), Lewis wrote:
> In message <itdaphFt4v8U2@mid.individual.net> Arno Welzel
<usenet@arnowelzel.de> wrote:
> > Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
> > prevent this if target="_blank" is present.
>
> It certainly is possible, though I don't know if any current browsers
> support that user option. But yes, there is nothing preventing a browser
> for having an option "Do not allow clicks to open a new window."

If I remember correctly, Firefox did have such an option back in the
day when web dee-zign-urz used target= a whole lot. I remember using
that option to cause such links to be opened in the same tab, unless
I Ctrl-clicked on them.

--
Stan Brown, Tehachapi, California, USA
https://BrownMath.com/
https://OakRoadSystems.com/

Re: coding links

<itm2maFj75jU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=170&group=comp.infosystems.www.authoring.html#170

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Sun, 24 Oct 2021 23:48:59 +0200
Lines: 27
Message-ID: <itm2maFj75jU3@mid.individual.net>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local> <itdaphFt4v8U2@mid.individual.net>
<slrnsn955k.1a23.g.kreme@m1mini.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net rizf4sZTP2/cv2puleikpgYBMlUFBi5MvLkUbHcikM+lFanlWK
Cancel-Lock: sha1:EWWQdNZTKG5dBOwDPZ1oxpfZCJU=
In-Reply-To: <slrnsn955k.1a23.g.kreme@m1mini.local>
 by: Arno Welzel - Sun, 24 Oct 2021 21:48 UTC

Lewis:

> In message <itdaphFt4v8U2@mid.individual.net> Arno Welzel <usenet@arnowelzel.de> wrote:
>> Lewis:
>
>>> In message <sknpai$ffl$1@dont-email.me> Dale <dale@dalekelly.org> wrote:
>>>> <p>This <a href="https://www.w3docs.com/" target="_blank">hyperlink</a>
>>>> will open in a new tab. </p>
>>>
>>> No, the behavior of that is entirely up to the browser (and usually the
>>> user's preferences). It opens a new WINDOW, which the Browser may decide
>>> to open as a tab, or not.
>
>> Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
>> prevent this if target="_blank" is present.
>
> It certainly is possible, though I don't know if any current browsers
> support that user option. But yes, there is nothing preventing a browser
> for having an option "Do not allow clicks to open a new window."

In fact no browser has this option - so it's pointless to mention that
this *could* be done technically to justify the use of target="_blank".

--
Arno Welzel
https://arnowelzel.de

Re: coding links

<slrnsnca35.1j0m.g.kreme@m1mini.local>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=171&group=comp.infosystems.www.authoring.html#171

  copy link   Newsgroups: comp.infosystems.www.authoring.html alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!kreme.dont-email.me!.POSTED!not-for-mail
From: g.kreme@kreme.dont-email.me (Lewis)
Newsgroups: comp.infosystems.www.authoring.html,alt.html
Subject: Re: coding links
Date: Mon, 25 Oct 2021 03:45:41 -0000 (UTC)
Organization: Miskatonic U
Lines: 24
Message-ID: <slrnsnca35.1j0m.g.kreme@m1mini.local>
References: <sknohu$c02$1@dont-email.me> <sknpai$ffl$1@dont-email.me>
<slrnsn096s.g1u.g.kreme@m1mini.local> <itdaphFt4v8U2@mid.individual.net>
<slrnsn955k.1a23.g.kreme@m1mini.local>
<MPG.3bdf10046f75ba2198fe3a@news.individual.net>
Reply-To: g.kreme@gmail.don-t-email-me.com
Injection-Date: Mon, 25 Oct 2021 03:45:41 -0000 (UTC)
Injection-Info: kreme.dont-email.me; posting-host="85659fd306cdd5001f8198605d86d6ca";
logging-data="25025"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+/0jTf/wsdu5sMs0WqMPa"
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:IMMvM69e/1Ql7CKDvqWHVnWmHbA=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
X-Clacks-Overhead: GNU Terry Pratchett
Mail-Copies-To: nobody
 by: Lewis - Mon, 25 Oct 2021 03:45 UTC

In message <MPG.3bdf10046f75ba2198fe3a@news.individual.net> Stan Brown <the_stan_brown@fastmail.fm> wrote:
> On Sat, 23 Oct 2021 23:03:17 -0000 (UTC), Lewis wrote:
>> In message <itdaphFt4v8U2@mid.individual.net> Arno Welzel
> <usenet@arnowelzel.de> wrote:
>> > Yes - but the browser WILL ALWAYS open something new! A user CAN NOT
>> > prevent this if target="_blank" is present.
>>
>> It certainly is possible, though I don't know if any current browsers
>> support that user option. But yes, there is nothing preventing a browser
>> for having an option "Do not allow clicks to open a new window."

> If I remember correctly, Firefox did have such an option back in the
> day

That's what I was thinking as well, but I cannot say for certain.

I think iCab and/or OmniWeb did this too, about 15-20 years ago.

--
'An appointment is an engagement to see someone, while a morningstar
is a large lump of metal used for viciously crushing skulls. It
is important not to confuse the two.'

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor