»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-27-2004, 07:42 AM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
target frame

Is there a way to have all external links open in a new window, and all links of the home domain to open in _self ?

at the moment i have a page where all links are opened in a new window due to this tag that i am using:

<base target="_blank">

can this be modified?

ClubMed is offline   Reply With Quote
Old 04-27-2004, 08:08 AM   #2 (permalink)
Registered User
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 4,714
Bill in SD, CA is on a distinguished road
Wouldn't just dropping the target="_blank" accomplish that?

Bill
Bill in SD, CA is offline   Reply With Quote
Old 04-27-2004, 08:45 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
If I drop target blank then all links will open in the same window, even external ones?
ClubMed is offline   Reply With Quote
Old 04-27-2004, 09:06 AM   #4 (permalink)
Registered User
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 4,714
Bill in SD, CA is on a distinguished road
On "my" home page all of my links open in a new window with the exception of Hardware Links which opens in the same window.

I just dropped the "blank" tag on that one.

So I would assume that external links would do the same thing.

http://members.cox.net/ihategates/mylinks.html

Bill
Bill in SD, CA is offline   Reply With Quote
Old 04-27-2004, 11:49 AM   #5 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
I just had a look at the source of your page, in your case each link has it's own individual tag to specify which target frame to open in.

On the other hand what I am looking for is some html code that automatically checks to see if a link is on the home domain or external and then either allows it to open in the _self frame or _blank

In other words, the tag I posted in my first post is not placed in each link, it resides in the <head></head> section.
ClubMed is offline   Reply With Quote
Old 04-27-2004, 11:51 AM   #6 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
if there is a way to do it with css perhaps please let me know.
ClubMed is offline   Reply With Quote
Old 04-27-2004, 11:54 AM   #7 (permalink)
Registered User
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 4,714
Bill in SD, CA is on a distinguished road
I was wondering if I understood what you were asking.

Obviously not.

Maybe someone at HTML Forums can help you out.

Bill
Bill in SD, CA is offline   Reply With Quote
Old 04-27-2004, 02:48 PM   #8 (permalink)
Guest
Guest
 
Posts: n/a
As far as I know, you can't do what you want without scripting, CM. Most people just use target="_blank" in the links they want to be new pages. If you have more new page links than not, you could do base target="_blank" and then do target="_self" in the links you want native.

Otherwise I think you'd have to do some sort of funky programming that would be more time and effort than just using the target switch.
  Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:10 PM.