Forum Moderators: mack

Message Too Old, No Replies

Opening a new window when using hyperlink

Can this be easily done in frontpage?

         

dloreski

11:03 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Hi everyone.
When I insert a hyperlink with frontpage, it takes the user away from my site.
Is there an easy way to make it open a new window when the user gets re-directed?
- Dave

MamaDawg

11:23 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Not sure how you do it using FrontPage, but what you need to do is add the following attribute

target="_blank"

to your HTML link (<a>) tag ...

mack

4:05 am on Feb 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In Frontpage right click on the link you have created. and go to "hyperlink properties"

An options section will open up. In there you will a section titles "target frame" from in there you can choose "new window" and this will set the link to open in a new window.

Mack.

dloreski

5:02 am on Feb 9, 2005 (gmt 0)

10+ Year Member



Thanks everyone!
- Dave

Rachel

3:27 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Make sure you don't set it to be the default setting, though. I did that accidentially once, and all of my navigation links started opening in new windows, too.

Jackal

7:43 am on Mar 1, 2005 (gmt 0)



Hey everyone! Just wanted to say that everyone who posts and helps out are great! So, I also have another question. It is related to a simple problem so I also assume there is a simple solution. How do I create a link or text that when a site visitor clicks on it it will allow them to save my site or the page they are looking at in their Favorites folder? I would prefer it if the person who clicked on the link were to be given the choice to add it to a specific area of their favorites (such as Organize Favorites function in IE) and if this is not possible at least it will just automatically add the bookmark to the person's Favorites. I am using FP2000 and even though I know some advanced stuff I am still unable to locate this function or how to do it.

gettopreacherman

3:21 pm on Mar 2, 2005 (gmt 0)

10+ Year Member



Jackal,

If I am not mistaken, I believe this is a javascript command. I would suggest you look for it in javascript forums and sites.

Jackal

7:54 pm on Mar 3, 2005 (gmt 0)



Thanks to everyone who offered advice. I solved the problem and I am posting here so someone can copy and paste if they need the same thing and want to add it to their site. So many people seem to just say thanks and they got the answer but they also never share. I was hoping we could all share more so we can all learn more.

<a href="javascript:window.external.AddFavorite('http://www.example.com','general info about the link');"><b>Bookmark This Site!</b></a>

The domain and entry are interchangeable. For example:

You would edit the domain example.com to any domain you have. Then the information between the ' marks would be changed to whatever you want since this text will be what is added to the Favorites remarks section as a referent. Bookmark This Site! can be changed to Bookmark This Website! or Add To Favorites! or whatever you want. Just edit and save. Once you are finished just copy and paste into your HTML code and that's all there is to it.

[edited by: mack at 3:43 am (utc) on Mar. 4, 2005]
[edit reason] used example.com [/edit]