Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 09:23:48 PM

Pages: [1]   Go Down
  Print  
Author Topic: Link opens a New Window  (Read 1109 times)
dnelson
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« on: June 02, 2004, 01:12:38 PM »

I have a web created with Front Page 2000.  One page has a hyperlink that always opens the page in a new window.  I really would want to be able to hit the "back" button to get back to the previous page but have to close the window.

What causes this?  I've tried looking in FP help but can't seem to find anything.  I would guess there might be a reason why I might want to do this sometime, but not now.

Thanks
Logged
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #1 on: June 02, 2004, 01:32:30 PM »

Look in the <a href...> tag of the offending link. Delete  
Code:
target="whatever"
Target says in which window to open the page. There is one that says to open in the current window, but just to make it easier on yourself, delete the target setting.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
dnelson
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« Reply #2 on: June 02, 2004, 01:59:02 PM »

At the time I developed the web page I didn't work directly with HTML code.  

The only occurance to the word "target" in the html code is <base target="main"> and that is earlier on in the page.  Is that what you are referring to?

Here is an excerpt from the code.  (The offending link is to "CA.htm".)

<p align="center">&nbsp;</p>
<p align="center"><font face="Comic Sans MS">Click on each day of the week to
see what we did</font></p>
<p align="center"><a href="CA.htm"><img border="0" src="images/j0189264.jpg" width="343" height="214"></a></p>
<p align="center">Click above to see detailed map ^</p>
<p align="center"><font face="Arial Black" color="#FF00FF">Carlson waiting for
us to come home!</font></p>

Do you see anything else?   Confused
Logged
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1127


« Reply #3 on: June 02, 2004, 09:47:09 PM »

Hi,

To change the hyperlink properties so that the link opens in the same page, right-click on the hyperlink and choose Hyperlink Properties... Target Frame... Whole Page... then click OK.
Logged

All the best, Rick E

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #4 on: June 02, 2004, 10:05:27 PM »

That's so strange... I see nothing in the code that would invoke such behavior. Is this a Front Page thing? Confused
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
Hush
Senior Moderator
Über Jedi
*****
Offline Offline

Posts: 2905


« Reply #5 on: June 03, 2004, 03:07:39 AM »

I take it you have added in the spaces around the link?

Okay, try this (I know this isn't W3 approved but just to check something), take out the " marks either side of the link CA.html and see how it opens then...
Logged

<- From the ashes will rise a phoenix ->

Lunarpages Web Hosting || Lunarpages Forums || Lunarpages Affiliate Program
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #6 on: June 03, 2004, 03:39:49 AM »

Quote from: Hush
I take it you have added in the spaces around the link?

Okay, try this (I know this isn't W3 approved but just to check something), take out the " marks either side of the link CA.html and see how it opens then...

That's what my first thought was, but then I saw that he had colored the word. phpBB causes spaces to show up when text is formatted. This problem was highlighted in a thread where someone provided some code and people couldn't get it to work because the example included colored text, which resulted in extra spaces.

Just to make sure, I mimicked a link that included spaces within quotation marks and the link did not open in a new window.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
Hush
Senior Moderator
Über Jedi
*****
Offline Offline

Posts: 2905


« Reply #7 on: June 03, 2004, 04:15:41 AM »

That's fine then.

Let us know what happens when you take out the " marks  Thumbs Up
Logged

<- From the ashes will rise a phoenix ->

Lunarpages Web Hosting || Lunarpages Forums || Lunarpages Affiliate Program
dnelson
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« Reply #8 on: June 03, 2004, 06:11:31 AM »

Thanks, I'll try the suggestions and let you know.

(Yes I did color the link so it would stand out and did notice that it added spaces before and after)
Logged
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1127


« Reply #9 on: June 03, 2004, 06:45:21 AM »

>>>The only occurance to the word "target" in the html code is <base target="main"> and that is earlier on in the page. >>>

This tag is often used on pages with frames. If you are not using frames on your page, remove this and it may solve your problem.
Logged

All the best, Rick E

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #10 on: June 03, 2004, 01:00:56 PM »

Quote from: Hush
Let us know what happens when you take out the " marks  Thumbs Up

I tried that too, and it worked. I used to have problems before. I guess I was inconsistent, so I would have incomplete quotation sets. Embarassed Now I quote all the time, at least to get W3 approval. Smile
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
dnelson
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« Reply #11 on: June 04, 2004, 07:16:19 AM »

Well, "Rick_E" jogged my memory.   Idea

I remembered at one time that the page did have frames (that were hard to work with at the time) that I had deleted.  Front Page 2000 must have not removed the "<base target="main">" clause from the HTML code.  When I deleted that, the opening of a new window stopped.

Thanks a bunch for all the ideas!   Applause

BTW, pardon my ignorance, but what does "W3 approval" mean?  Is that some sort of programming standard?   Question
Logged
Hush
Senior Moderator
Über Jedi
*****
Offline Offline

Posts: 2905


« Reply #12 on: June 04, 2004, 07:23:35 AM »

W3C Is the World Wide Web Consortium - basically they make up the guidelines for what should be done on the web.  If you want to be compatible with all browsers the idea is you conform to all of them recommendations...

Find out more info http://www.w3.org/  Thumbs Up

(not to be confused with http://www.w3.com who are an ISP who seem to want to piggy back off the W3C name...)
Logged

<- From the ashes will rise a phoenix ->

Lunarpages Web Hosting || Lunarpages Forums || Lunarpages Affiliate Program
Pages: [1]   Go Up
  Print  
 
Jump to: