Thierry Koblentz wrote:
Hi all,
I'd appreciate your feedback about this technique that does not rely on
hooks; it only uses the href attribute...
http://www.tjkdesign.com/articles/popups.asp
Looks good Thierry.
One thing though-- what happens to mailto: links?
i know in an *old* switcher i had:
if(href.indexOf("mydomain.com") == -1){ // Href is not a file on my server
if(href.indexOf("javascript:") == -1){ // Href is not a
javascript call
if(!anchors[i].onclick){ // Href does not have
an onclick event
if(href.indexOf("mailto:") == -1){ //
Href is not a mailto:
if(href.indexOf("http://") != -1){ // Href is not relative (for
Safari)
anchors[i].setAttribute("target","_blank");
}
}
}
}
}
I found the the mail and safari links got all weird.
perhaps this is something to look into or test if you haven't already.
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************