home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

target frame

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2447
Discussions: 201,011, Posts: 2,380,102, Members: 246,377
Old April 27th, 2004, 10:42 AM   Digg it!   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
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 April 27th, 2004, 11:08 AM     #2 (permalink)
Supporting our military
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 9,197
Wouldn't just dropping the target="_blank" accomplish that?

Bill
Bill in SD, CA is offline   Reply With Quote
Old April 27th, 2004, 11:45 AM     #3 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
If I drop target blank then all links will open in the same window, even external ones?
ClubMed is offline   Reply With Quote
Old April 27th, 2004, 12:06 PM     #4 (permalink)
Supporting our military
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 9,197
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 April 27th, 2004, 02:49 PM     #5 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
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 April 27th, 2004, 02:51 PM     #6 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
if there is a way to do it with css perhaps please let me know.
ClubMed is offline   Reply With Quote
Old April 27th, 2004, 02:54 PM     #7 (permalink)
Supporting our military
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 9,197
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 April 27th, 2004, 05:48 PM     #8 (permalink)
ph34r t3h g04t
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 19,595
Blog Entries: 7
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.
Whir is online now   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3138)
‘Rogue’ or ‘Rouge’? (10)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (6)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (14)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (43)
windows 7 problem (7)
Recent Discussions
Best file format to play on Windows H.. (1)
Please Help. (2)
winrar decompresses, but video gone (0)
Advice for stopping IRQ BSOD is win7 (0)
Foxconn Blackops x48 MoBo (6)
downloading error for Creative prodik.. (0)
Outputing 1080p from my PC to my 720p.. (1)
Need idiot-proof help for building a .. (3)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (43)
Computer shutting down on its own (7)
Hp Artist Edition + Matching Bag (1)
cant access the internet (1)
COD radeon problems (0)
Browsers wont load websites (4)
Unallocated Space (3)
Size after cutting 700Mb file is 2.5 .. (1)
Blackberry Bold 9000 (0)
Can't open Word (13)
Rar volume (number 7) (1)
System restore :) (1)
Laptop with wireless problem. (14)
Looking for new motherboard (2)
add ram to existing (4)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)


All times are GMT -4. The time now is 06:55 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28