Click here to get back home

code to popup link in new browser window

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
code to popup link in new browser window zn 01-02-2005
Posted by zn on January 2, 2005, 10:05 pm
Please log in for more thread options
How can I cause a link on a page to open up a new browser window when the
link is clicked on? I've noticed javascript code sometimes when I try to
right-click a link and open it in another window.

Is there a way to use straight HTML to cause a link to open a new browser
window?

Thanks.


Posted by Starshine Moonbeam on January 2, 2005, 10:08 pm
Please log in for more thread options
(zn@zn122.edu.invalid) dropped a +5 bundle of words...

> How can I cause a link on a page to open up a new browser window when the
> link is clicked on? I've noticed javascript code sometimes when I try to
> right-click a link and open it in another window.
>
> Is there a way to use straight HTML to cause a link to open a new browser
> window?

target=_blank

--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM











Posted by Stan Brown on January 3, 2005, 12:28 am
Please log in for more thread options
"zn" wrote in comp.infosystems.www.authoring.html:
>How can I cause a link on a page to open up a new browser window when the
>link is clicked on?

It depends on your browser, but usually it's right-click and then
select "Open in New Window".

I'm sure you don't mean to ask how to write a Web page that will open
its link in a new window, because that is evil and anti-user. (Think
back to how often you've been annoyed by windows opening up unasked,
and don't do that to your visitors.)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you


Posted by zn on January 3, 2005, 12:14 am
Please log in for more thread options

> "zn" wrote in comp.infosystems.www.authoring.html:
>>How can I cause a link on a page to open up a new browser window when
>>the link is clicked on?
>
> It depends on your browser, but usually it's right-click and then
> select "Open in New Window".
>
> I'm sure you don't mean to ask how to write a Web page that will open
> its link in a new window, because that is evil and anti-user. (Think
> back to how often you've been annoyed by windows opening up unasked,
> and don't do that to your visitors.)
>

Once I read up about the command, I realized the connection with the
dreaded pop-up windows, and also that some anti-pop programs would disable
the feature, so I came to my senses.

What I wanted to do was keep the reader on one page but give them the
option to look at an associated reference page quickly without disrupting
where they were (I guess like a basic popup window). But is sounds like
it'll just cause more aggravation than cause good.


Posted by Neal on January 3, 2005, 5:11 am
Please log in for more thread options

> Once I read up about the command,

What "command"?

> I realized the connection with the
> dreaded pop-up windows, and also that some anti-pop programs would
> disable
> the feature, so I came to my senses.
>
> What I wanted to do was keep the reader on one page but give them the
> option to look at an associated reference page quickly without disrupting
> where they were (I guess like a basic popup window). But is sounds like
> it'll just cause more aggravation than cause good.

I agree. I can open new windows all I like. So can your user, if it's of
any benefit.



Similar ThreadsPosted
How do I pass a list of arguments from a popup window to the parent window? July 6, 2006, 4:49 am
how to set browser window attributes in this HTML code? March 21, 2005, 9:12 am
scrollbar won't add to popup window July 22, 2004, 1:57 pm
HTML Form post to popup-window January 22, 2008, 10:41 pm
animated gif stops when used as a link to a popup March 11, 2006, 11:48 am
html link from browser link to xml editor September 9, 2004, 5:53 am
New browser window with no toolbars January 10, 2005, 4:53 pm
Linking to a Targeted Browser Window May 9, 2005, 12:10 pm
How to prevent a new browser window from opening April 11, 2008, 4:28 am
changes in HTML code are ignored by the browser (IE6) October 7, 2004, 11:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap