Target _blank

J

Jorge A

¡Hi!

I have created a link with property "target _blank". Every new link is
loaded in a new window.

How can I load every new link in the SAME window?

Thanks in advance
 
J

Jorge A

Jorge said:
¡Hi!

I have created a link with property "target _blank". Every new link is
loaded in a new window.

How can I load every new link in the SAME window?

Thanks in advance

I mean another window (not the one where the link is clicked; I know
this is possible using _self), but always the same new window.
 
A

Arne

B

Barbara de Zoete

I have created a link with property "target _blank". Every new link is loaded
in a new window.

How can I load every new link in the SAME window?

Just leave the target attribute out. They'll all load in the same window then,
plus your visitors will be grateful that you don't force windows on them they
haven't asked for.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
 
A

Arne

Once said:
I mean another window (not the one where the link is clicked; I know
this is possible using _self), but always the same new window.

So maybe you should try to be little more specific with what you want?
After all, you said "How can I load every new link in the SAME
window?" and now you dont want it?

--
/Arne
Now killing all top posters and posters who don't quote
* How to post: http://www.cs.tut.fi/~jkorpela/usenet/brox.html
* From Google: http://www.safalra.com/special/googlegroupsreply/
-------------------------------------------------------------
 
B

Barbara de Zoete

I mean another window (not the one where the link is clicked; I know this is
possible using _self), but always the same new window.

Google this group for _all_ the reasons why not to do that.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
 
P

pacal

Jorge said:
¡Hi!

I have created a link with property "target _blank". Every new link is
loaded in a new window.

How can I load every new link in the SAME window?

Thanks in advance
you have to use javascript like underneath

<a onClick="javascript:window.open('file-to-open.ext','
framename-to-open','scrollbars,width=900,height=750,alwaysRaised=Yes/no,dependent,top=2,left=2')\"
href="#">

if you give framename-to-open the same name in every link all
file-to-open.ext wil be opend in the same frame (window)
ideal for viewing items in a list of records (on a local lan ofcourse)

or google for javascript:window.open() for more parameters

pacal
 
M

Mitja Trampus

Jorge said:
I mean another window (not the one where the link is clicked; I know
this is possible using _self), but always the same new window.

"the same new window" is a bit contradictory :)
But if I get you right - just give that "same new window" a
name, e.g. "foobar". Then target="foobar" will try to reuse
the existing window/tab. If no frame with such name exists
yet, if will open open a new window/tab.
 
J

Jorge A

Thank you all for you useful/not so useful answers :)

I will investigate java-script codes and target="foo" options.

And pardon me if I haven't explained my problem as well as I had wanted;
my English need a big revision :p

Regards!
 
R

Rossz

Jorge said:
I mean another window (not the one where the link is clicked; I know
this is possible using _self), but always the same new window.

target="a_window_name"
 
J

Jorge A

But if I get you right - just give that "same new window" a name, e.g.
"foobar". Then target="foobar" will try to reuse the existing
window/tab. If no frame with such name exists yet, if will open open a
new window/tab.

Could you explain how to give the new window a name?

Thanks again :)
 
J

Jake

Jorge A said:
¡Hi!

I have created a link with property "target _blank". Every new link is
loaded in a new window.

How can I load every new link in the SAME window?

Thanks in advance


(a) Remove "target=_blank" from your links.

(b) In the <head></head> section, place:
<base target="new_window">


All links on that page will then load content into the one new window.



regards
 
N

Neredbojias

With neither quill nor qualm, Jorge A quothed:
Thank you all for you useful/not so useful answers :)

I will investigate java-script codes and target="foo" options.

And pardon me if I haven't explained my problem as well as I had wanted;
my English need a big revision :p

Regards!

Hey, look at Arnold Schwarzenegger. He still talks like he has a
mouthful of knoodles and he's governor of some admittedly minor western
state.
 
?

=?ISO-8859-1?Q?G=E9rard_Talbot?=

pacal wrote :
you have to use javascript like underneath

<a onClick="javascript:window.open('file-to-open.ext','
framename-to-open','scrollbars,width=900,height=750,alwaysRaised=Yes/no,dependent,top=2,left=2')\"

width and height values will be too big for 800x600 scr. res. users; so
these values will be corrected eventually by error correction mechanisms
in browsers.
alwaysRaised and dependent are only supported by Mozilla-based browsers
and Netscape; besides, the value given for alwaysRaised is wrong.
As given, the windowFeatures string list will make the new window
non-resizable.
href="#">

href="#" is always wrong:
http://developer.mozilla.org/en/doc...22_onclick.3D.22window.open.28....29.3B.22.3E

if you give framename-to-open the same name in every link all
file-to-open.ext wil be opend in the same frame (window)
ideal for viewing items in a list of records (on a local lan ofcourse)

or google for javascript:window.open() for more parameters

pacal


Gérard
 
A

Andy Dingley

How can I load every new link in the SAME window?

<a href="_foo" > will cause a new window, but will re-use a window
named "_foo" if one is already open. <a href="_bar" > will create
another one simultaneously, with similar re-use behaviour.

Breaks a whole bunch of standards, works in most places that matter.
 
M

Mitja Trampus

Andy said:
<a href="_foo" > will cause a new window, but will re-use a window
named "_foo" if one is already open. <a href="_bar" > will create
another one simultaneously, with similar re-use behaviour.

target, not href, but I'm sure that's a typo. The leading
underscores are allowed but not obligatory as the above
examples may suggest.
Breaks a whole bunch of standards, works in most places that matter.

Which ones?
http://www.w3.org/TR/REC-html40/present/frames.html#h-16.3.2
 

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

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top