Gazing into my crystal ball I observed "Lars Schlanbusch"
<la**@schlanbusch.no> writing in news:3f********@news.broadpark.no:
Hi!
Is there any way to set <base target="_blank"> for links which link to
a page outside the domain, and <base target="_self"> for links which
link to a page inside the domain?
Can i do such a thing in the global.asa file or maybe in an other
include asp file? I am working on a site with 3-4000 hyperlinks, and I
do not look forward to "marching" through every each one ove them and
set target to _blank og _self...
Thanks in advance
Lars Schlanbusch
This is probably another one of the reasons that the target attribute was
removed from XHTML Strict. Let the user decide if they want to open the
link in a new window or not. Remember there are many browsers out there
now that block commands to open new windows - even those with just the
target attribute, including javascript.
Additionally, I see you asking about _self. You're not using frames, are
you? Tsk, tsk, tsk.... unfriendly for visitors, search engines, etc.
As for putting something like that in a global.asa I would think not. The
target attribute is client side, not server side.
If you insist on opening new windows, and your links are generated from a
table, then you could add a field called maybe "outside", test whether the
link is outside or not, and build your a element accordingly.
--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com