A Question...

L

Lupine Predator

When linking from an html page, is it possible to code the link so that
rather than using the existing open tab, the link target opens in either a
new tab, (preferred), or in a new window (NOT preferred). Thanks...
--
L.P.

My Blog - Updated on a (somewhat) regular basis:
http://lupinepredator.wordpress.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My Website - Spirit of the Winds:
http://spiritofthewinds.byethost22.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"This human's usenet privileges will be revoked
at the first sign of neglecting to fill the food
dish for the cat population of this home."

~ Annie, aka "Old Iron-Claw" ~
 
A

Adrienne Boswell

When linking from an html page, is it possible to code the link so
that rather than using the existing open tab, the link target opens in
either a new tab, (preferred), or in a new window (NOT preferred).
Thanks...

No. Let the user decide if they want to open a link a new tab or window. I
HATE it when a link opens in a new window/tab and there I am gesturing back
and nothing happens, and then I look at the back button and see it is
greyed out. I REALLY REALLY HATE THAT!!!
 
S

Sherm Pendley

Lupine Predator said:
When linking from an html page, is it possible to code the link so that
rather than using the existing open tab, the link target opens in either a
new tab, (preferred), or in a new window (NOT preferred). Thanks...

First off, as a user, on the "things that annoy the hell out of me on
the web" scale, opening up new tabs or windows ranks right below
resizing my window to suit your preferences instead of mine. A site
that disrespects its users in that way will only get my business if
there is no possible altenative - and on today's web that's hardly
ever the case.

Having said that, it's not my problem if you want to annoy your
users. So, if you want to do that, just use the target attribute in
your link, like this:

<a href="http://example.invalid" target="_blank">Go away, and
don't come back!</a>

sherm--
 
F

freemont

When linking from an html page, is it possible to code the link so that
rather than using the existing open tab, the link target opens in either a
new tab, (preferred), or in a new window (NOT preferred). Thanks...

Results 1 - 10 of about 424,000 for html open link new tab. (0.23 seconds)

<http://www.google.com>
 
C

Chris F.A. Johnson

When linking from an html page, is it possible to code the link so that
rather than using the existing open tab, the link target opens in either a
new tab, (preferred), or in a new window (NOT preferred). Thanks...

Any site that does that to me will be immediately blacklisted.
Luckily for you, my browser is configured so that it never
happens.
 
L

Lupine Predator

No. Let the user decide if they want to open a link a new tab or window. I
HATE it when a link opens in a new window/tab and there I am gesturing back
and nothing happens, and then I look at the back button and see it is
greyed out. I REALLY REALLY HATE THAT!!!

Maybe I wasn't being clear enough then.

This is for a launchpad page that resides on my HD, and is used as my
homepage. It is nothing but a list of links. *I* *WANT* this to happen.

So... The user has decided that this is what he wants...

TYVM...
--
L.P.

My Blog - Updated on a (somewhat) regular basis:
http://lupinepredator.wordpress.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My Website - Spirit of the Winds:
http://spiritofthewinds.byethost22.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"This human's usenet privileges will be revoked
at the first sign of neglecting to fill the food
dish for the cat population of this home."

~ Annie, aka "Old Iron-Claw" ~
 
L

Lupine Predator

First off, as a user, on the "things that annoy the hell out of me on
the web" scale, opening up new tabs or windows ranks right below
resizing my window to suit your preferences instead of mine. A site
that disrespects its users in that way will only get my business if
there is no possible altenative - and on today's web that's hardly
ever the case.

Having said that, it's not my problem if you want to annoy your
users. So, if you want to do that, just use the target attribute in
your link, like this:

<a href="http://example.invalid" target="_blank">Go away, and
don't come back!</a>

sherm--

Thanks, Sherm. This is for a launchpad kind of homepage that is only for
my use, and I want the links to remain in a separate tab, while the link I
clicked opens in a new tab.

I appreciate the help - I thought that this was the case, but W3 Schools
didn't give me much in terms of understandable explanations.
--
L.P.

My Blog - Updated on a (somewhat) regular basis:
http://lupinepredator.wordpress.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My Website - Spirit of the Winds:
http://spiritofthewinds.byethost22.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"This human's usenet privileges will be revoked
at the first sign of neglecting to fill the food
dish for the cat population of this home."

~ Annie, aka "Old Iron-Claw" ~
 
J

Jonathan N. Little

Lupine said:
Thanks, Sherm. This is for a launchpad kind of homepage that is only for
my use, and I want the links to remain in a separate tab, while the link I
clicked opens in a new tab.

Hold down the CTRL key and click!
 
L

Lupine Predator

Hold down the CTRL key and click!

Yeah, I know...

I'm lazy... I want to click, and that's all... <G>
--
L.P.

My Blog - Updated on a (somewhat) regular basis:
http://lupinepredator.wordpress.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My Website - Spirit of the Winds:
http://spiritofthewinds.byethost22.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"This human's usenet privileges will be revoked
at the first sign of neglecting to fill the food
dish for the cat population of this home."

~ Annie, aka "Old Iron-Claw" ~
 
J

Jonathan N. Little

richard said:
Either you don't do much with your browser or you have one hell of a
long blacklist.

SeaMonkey: Edit > Preferences > Navigator > Tab Browsing > Link open
behavior, Open links meant for a new window [x]The current tab/window

"power to the people!"
 
J

Jonathan N. Little

Lupine said:
Yeah, I know...

I'm lazy... I want to click, and that's all... <G>

Well set your links to open in a new windows with the TARGET attribute,
forget validation, and set you browser preferences to force new windows
to a new tab. Problem solved.
 
C

Chris F.A. Johnson

Either you don't do much with your browser or you have one hell of a
long blacklist.

No, because, as I said above, "my browser is configured so that it
never happens."
 
R

Roy A.

Yeah, I know...

I'm lazy...  I want to click, and that's all...  <G>

You could use target="_blank" on the links:

<a href="http://example.com/" target="_blank" title="Close window to
go back.">read more</a>

There should be a meta tag for this, but sadly, there isn't.

If you have a template, you could replace the body tag with this:

<body onload="a=document.links;for(var i=0;i&lt;a.length;i++)
{a.target='_blank'}">

It want work if the browser don't support javascript, or the user for
some reason has disabled it. In that case, just inform the user in a
nice way.

<noscript>
<p>Your browser don't support JavaScript.</p>
<p>Hold down the Ctrl key while clicking links! Then you can just
close the window to go back!</p>
</noscript>
 
S

Sherm Pendley

Lupine Predator said:
This is for a launchpad kind of homepage that is
only for my use

Did you know, that was the original use of a "home" page? Back when
browsers had names like Cello and Mosaic. The idea was that everyone
would make his or her own start page of links.

sherm--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top