Opening links in new window. Read prev. posts, still having troub

G

Guest

I am trying to set hyperlinks to open in a new window. I have read previous
posts and have made some progress. I have followed this set of instructions
from a previous post:
Set the target in the hyperlink to a named frame/window. Example:
<a href="pagename.htm" target="myname">page in new window</a>
If the window exists, it will be used, if the window does not exist it
will
be created.
The first page opens in a new window and then the second link (a specific
link, not just any second link clicked) opens in that same window, but if I
click any other link or go back to the first, I start getting multiple
windows again.

Any other suggestions as to what I am doing wrong? I am working with
FP2003. I have spent quite some time in the help files but have not located
the solution yet. Any assistance would be greatly appreciated.

Thaks so much.
 
M

Murray

Why not post a link to a page that is failing to do this, and state which
link it is that is failing?
 
T

Thomas A. Rowe

The only way to avoid have new windows created, it to use JavaScript to set the name of the Window.

However you really should consider only open link in a new window, if the link to another web site,
if the link is internal to your site, then do not open it in a new window, set the target value to
_top or _self.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

Sorry I didn't mention which links I am having problems with. All of the
links to names of singers and the Positech link. Thanx
 
M

Murray

G

Guest

This still opens each link in a new window. I would like for the first new
window
to be the target for each subsequent link clicked. Thomas mentioned using
JavaScript. Is there no easy "point and click" solution within FP2003? I am
new to this whole scene. JavaScript is a bit much to get my arms around
right now.

Thanks
 
M

Murray

Oh - sorry, I missed that detail. Well, in that case, you will have to do
something different. I'll cook something up for ya....
 
T

Thomas A. Rowe

One option is to create a page with the category links, then on your current page link to the
"category" which will load in the new window, then when the user clicks on any links in that window,
they will stay in that window.


--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

I have changed the targets on the hyperlinks per your instructions (I
think):)).
Sometimes the link opens in a new window; sometimes it opens in the same
window.
I haven't noticed a pattern yet, but haven't had a chance to examine that
closely.
The link is below if any of you care to look for me to see what else I am
doing wrong. Any help is greatly appreciated.

http://webpages.charter.net/fshusterxyz/MySite_ENGL3134/Interests.htm
 
T

Thomas A. Rowe

Each link does open in a new window. In order to re-use a window, you must use JavaScript to assign
a name to window as it is being created. This would have to be done on each link, as you don't know
which link someone would click first.

The _blank target value or a none-existing named target value will always open a new individual
browser window for a link.

My suggestion from yesterday (shown below) would solve the problem without requiring JavaScript to
generate the window, but it is not a great solution.

From yesterday:

One option is to create a page with just the category links, then on your current page link to the
"category" which will load in the new window, then when the user clicks on any links in that window,
they will stay in that window.

Category = Your Music Links
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

I found a solution that doesn't require JavaScript, will post in a few minutes.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Here is the solution:

<a href="http://www.cmt.com/artists/az/twitty_conway/artist.jhtml" name="mylinks" target="mylinks">

<a href="http://www.cmt.com/artists/az/lynn_loretta/artist.jhtml" name="mylinks" target="mylinks">

<a href="http://www.cmt.com/artists/az/cline_patsy/artist.jhtml" name="mylinks" target="mylinks">

<a href="http://www.cmt.com/artists/az/haggard_merle/artist.jhtml" name="mylinks" target="mylinks">

<a href="http://www.mozartproject.org/" name="mylinks" target="mylinks">

<a href="http://www.ozzynet.com/" name="mylinks" target="mylinks">

<a href="http://www.vh1.com/artists/az/zombie_rob/artist.jhtml" name="mylinks" target="mylinks">

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

The only problem with that (in my opinion, optimal) solution, is that once
the window named "mylinks" is shuttled to the background, it will stay
there, and the user may be unaware that more content is being added. About
the only way to deal with this would be to add the following to the code on
each page that will open in the mylinks window -

<body onBlur="self.focus()"...>
 
T

Thomas A. Rowe

Agreed, but since the links are external to the site, it is not possible with any window content
changes to bring the window forward.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

Oh, right. Bummer....

--
Murray
============

Thomas A. Rowe said:
Agreed, but since the links are external to the site, it is not possible
with any window content changes to bring the window forward.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

Thomas,
I tried the last suggestion and copied your links to my page. I am certain
that I am doing something wrong because I am still getting multiple new
windows. I would like to try the suggestion in this post:

One option is to create a page with just the category links, then on your
current page link to the "category" which will load in the new window, then
when the user clicks on any links in that window, they will stay in that
window.
Category = Your Music Links

I am quite uncertain how to go about implementing this suggestion. I know
that I can link to bookmarks on one page from another, but that isn't going
to follow a hyperlink is it? Could you point me in the direction of some
decent educational resources where I might find more about this method?
Thanks so much
 
T

Thomas A. Rowe

You have to do this HTML / Code View, you can not do this via the Hyperlink dialog.

This is your current link:

<a target="Links" href="http://www.cmt.com/artists/az/twitty_conway/artist.jhtml">Conway Twitty</a>

This is what your link needs to look like:

<a href="http://www.cmt.com/artists/az/twitty_conway/artist.jhtml" name="Links"
target="Links">Conway Twitty</a>


--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

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

Top