and don't use inline scripts. They are as bad as inline styles:

<a href="therapeuten/barkow-lewinsky.html" class="popup">Barkow-Lewinsky, Eva</a>

var links = document.getElementsByTagName('a');
for(i=0;i<links.length;i++) if (links[i].className=='popup')links[i].onclick = function() {window.open(this.href,'_blank','width=450,height=200,left=150,top=150 ');return false;}


This would be better, in case you have multiple classes assigned to your a tag:

        if (links[i].className.match(/\bpopup\b/))

Better than class, though, would be to use rel="external" or rel="dialogue" or some such thing. The rel attribute describes the relationship of the destination document to the origin document. Class is a style, and not a relationship. But honestly, 6 of one, half dozen of the other.

--

        Ben Curtis : webwright
        bivia : a personal web studio
        http://www.bivia.com
        v: (818) 507-6613



******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to