473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I name a window so I can TARGET back to it?

Greetings,

I would like to know if I can name my main browser window so that I can link
back to it from a pop-up window. I know using <A HREF="url" TARGET="name">
will name the new window being opened, but I want to name the window that I'm
starting out with.

I have a little popup window that I want to have a link in that when clicked
will make the original browser window open up to a new page. I don't care if
the pop-up window closes or anything, I just need the original browser window
to go to the intended new page.

I tried using a <BASE TARGET="name"> in the head area on the page, but that
didn't work.

Any help will be appreciated.
--
________
___ __ \_____ ________ ________
__ /_/ /__ / / /_ __ `/__ __ \ Ryan
_ _, _/ _ /_/ / / /_/ / _ / / / RS******@SCAMcast.net
/_/ |_| _\__, / \__,_/ /_/ /_/ (Maybe SCAMcast should be Comcast)
/____/

Nov 23 '05 #1
4 1564
In article <5-******************************@comcast.com>,
Ryan <RS******@SCAMcast.net> wrote:
Greetings,

I would like to know if I can name my main browser window so that I can link
back to it from a pop-up window. I know using <A HREF="url" TARGET="name">
will name the new window being opened, but I want to name the window that I'm
starting out with.


I will be of no help. You do know how obnoxious pop-up windows are to
anyone visiting a website, don't you? Newer browsers have an option to
quash them and for good reason. Links work wonderfully in lieu of
pop-ups. And they've been around as a basis of HTML.
Nobody wants pop-ups when visiting a site. Mark you site up for your
visitors, not for you.
And "target" indicates frames which is a whole 'nother issue.
For a more constructive analysis by somebody, provide a URL.

leo

--
<http://web0.greatbasin.net/~leo/>
Nov 23 '05 #2
Ryan a écrit :
Greetings,

I would like to know if I can name my main browser window so that I can link
back to it from a pop-up window. I know using <A HREF="url" TARGET="name">
will name the new window being opened, but I want to name the window that I'm
starting out with.

opener.location.href = strUrl;

I have a little popup window that I want to have a link in that when clicked
will make the original browser window open up to a new page. I don't care if
the pop-up window closes or anything, I just need the original browser window
to go to the intended new page.

if(opener && !opener.closed)
{
opener.location.href = strUrl;
};
I tried using a <BASE TARGET="name"> in the head area on the page, but that
didn't work.

Any help will be appreciated.


Everything is explained here (in particular, when referring to the
window object reference and to the reserved opener keyword):

DOM:window.open
http://developer.mozilla.org/en/docs/DOM:window.open

Gérard
--
remove blah to email me
Nov 23 '05 #3
<sigh> I was hoping this could be done without scripting. Seems like it
should be so easy on the surface, just giving the original window a name that
can be referred back to. You know, "Hey there window! You ain't got a name!
I guess I'll call you Bob. Now everyone can call you Bob in the future." Oh
well.

Thanks for the reference. I'm not so good with the scripting stuff, but if I
have a questions with it, I'll take it over to a javascript group.

Ryan

In article <3t************@uni-berlin.de>, ne***********@gtalbot.org says...
Ryan a écrit :
Greetings,

I would like to know if I can name my main browser window so that I can link
back to it from a pop-up window. I know using <A HREF="url" TARGET="name">
will name the new window being opened, but I want to name the window that
I'm starting out with.


opener.location.href = strUrl;
I have a little popup window that I want to have a link in that when clicked
will make the original browser window open up to a new page. I don't care
if the pop-up window closes or anything, I just need the original browser
window to go to the intended new page.


if(opener && !opener.closed)
{
opener.location.href = strUrl;
};
I tried using a <BASE TARGET="name"> in the head area on the page, but that
didn't work.

Any help will be appreciated.


Everything is explained here (in particular, when referring to the
window object reference and to the reserved opener keyword):

DOM:window.open
http://developer.mozilla.org/en/docs/DOM:window.open

Gérard


--
________
___ __ \_____ ________ ________
__ /_/ /__ / / /_ __ `/__ __ \ Ryan
_ _, _/ _ /_/ / / /_/ / _ / / / RS******@SCAMcast.net
/_/ |_| _\__, / \__,_/ /_/ /_/ (Maybe SCAMcast should be Comcast)
/____/

Nov 23 '05 #4
In our last episode, Ryan <RS******@SCAMcast.net> pronounced to
comp.infosystems.www.authoring.html:
<sigh>
Popups tend to produce that reaction.
I was hoping this could be done without scripting.


I was hoping it couldn't be done at all, so that you would stop trying
to inflict popups on your users.

Ignoring the new window issue for now though, it would make sense to me
if target="_parent" would load in the parent window (if any) if no
parent frameset exists.

Still, don't attempt to force new windows on your users in the first
place and it won't be an issue. :-)

--
Mark Parnell
http://clarkecomputers.com.au
Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Robert Mark Bram | last post by:
Hi All! Is there a way to reference a window by name without doing something like this: open (, 'windowName'); The open method will open a blank window if there is no window with such a name....
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
31
by: Benno Bös | last post by:
If I use the following construct in the frame "main" for a link to an extern site: <A HREF="http://www.any.xy" TARGET="extern"> the Browser is creating the window "extern", loading the page...
5
by: Piotr | last post by:
Hi, I have a big main window, prepared in html, and a small one, opened by window.open in <script> in main window script. I would like to click in small one and open sth in main one. How to do...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
2
by: sjp | last post by:
I need to open new windows only for the purpose of viewing linked images, maybe a dozen or so throughout the site. Using the Target="blank" command is quick, easy and seems like the best way to...
4
by: Brian Kitt | last post by:
I don't know where to ask this question. If you know of a better place to ask it, please let me know. I have a main web page containing many links to detail pages. All detail links open with...
14
by: | last post by:
Hi All, I am little confused here, hope you can help me. While processing WM_POWERBROADCAST (wParam=PBT_APMQUERYSUSPEND), I MUST to do some lengthy operation(30 sec) before system Suspends or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.