Hyperlink will not open in a target which is a named browser windo

L

Leroy

If I create a hyperlink that has for target the name of the browser window in
which I want my link to open (ex: "MyBrowserWindow"), when I click on that
link, it will open it in a window with a blank name and will not open it in
my window called "MyBrowserWindow".

However if I do the same thing by inserting a similar link (ex: <a
href='http://www.microsoft.com' target='MyBrowserWindow'>Microsoft</a>) in a
html file opened with a browser (or an editor other than a Microsoft Office
application), when I click on the link, it will open in a window named
"MyBrowserWindow". This is the desired result.

Is there a way to make the hyperlink in Word open in the desired browser
window.

Thanks.
 
R

Robert M. Franz (RMF)

Hello Leroy
If I create a hyperlink that has for target the name of the browser window in
which I want my link to open (ex: "MyBrowserWindow"), when I click on that
link, it will open it in a window with a blank name and will not open it in
my window called "MyBrowserWindow".

However if I do the same thing by inserting a similar link (ex: <a
href='http://www.microsoft.com' target='MyBrowserWindow'>Microsoft</a>) in a
html file opened with a browser (or an editor other than a Microsoft Office
application), when I click on the link, it will open in a window named
"MyBrowserWindow". This is the desired result.

Is there a way to make the hyperlink in Word open in the desired browser
window.

harly, as long as the file is opened in Word and in DOC format.

0.2¢
Robert
 
L

Leroy

Thanks Robert for the reply.

I get the the same result with a hyperlink in a .doc file in Word or an link
in an html file opened in Word. When I click on them the browser page that
opens doesn't have the name of the target that I specified.

When I try to view the hyperlink in the field code format by pressing
Alt-F9, the hyperlink appears as such:

{HYPERLINK "http://www.microsoft.com" \t "MyBrowserPageName"}

Why are we allowed to enter a customized name for the target if it is not
meant to open in a browser window with that name?

Is there a field code switch other than \t that would allow the link to open
in the right browser window?

I have the same results with links in a html mail message in Outlook.

Thanks,

Yves
 
R

Robert M. Franz (RMF)

Hello Leroy
I get the the same result with a hyperlink in a .doc file in Word or an link
in an html file opened in Word. When I click on them the browser page that
opens doesn't have the name of the target that I specified.

When I try to view the hyperlink in the field code format by pressing
Alt-F9, the hyperlink appears as such:

{HYPERLINK "http://www.microsoft.com" \t "MyBrowserPageName"}

Why are we allowed to enter a customized name for the target if it is not
meant to open in a browser window with that name?

but it is, isn't it: if you open the HTML in a browser!

Is there a field code switch other than \t that would allow the link to open
in the right browser window?

I have the same results with links in a html mail message in Outlook.

The underlying problem might be: the target property is meant for the
browser to interpret and act accordingly. IE knows what to do with it
(which you can test by opening the HTML file, generated in Word, in IE).
But Word and Outlook don't seem to have a facility for this. So it's
either use the browser and specify your targets, or don't bother. :-/

0.2¢
Robert
 
L

Leroy

Thanks Suzanne for the link to your very nice site and Robert for your reply.

As suggested by Robert, I will consider that hyperlinks in Word or Outlook
will not have this expected behavior (to open in a browser page with the name
specified in the target).

Thanks for your help,

Leroy
 

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