On Fri, 11 Mar 2005 11:49:57 -0000, Thorsten <[EMAIL PROTECTED]> wrote:

<a href="#" onClick="javascript:window.open('therapeuten/barkow-lewinsky.html','Barkow-Lewinsky, Eva','width=450,height=200,left=150,top=150');">Barkow-Lewinsky, Eva</a>

Never put URLs in onclick (javascript:blabla *is* URL)

Don't use href="#". Put meaningful link there, and avoid duplication by using this.href.

Second attribute for window.open is window name and works like target for <a>. To allow more than one pop-up, use _blank.

onclick may return false to prevent following href.

<a href="therapeuten/barkow-lewinsky.html" onClick="window.open(this.href,'_blank','width=450,height=200,left=150,top=150');return false;">Barkow-Lewinsky, Eva</a>

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;}

voila!

--
regards, Kornel Lesiński

******************************************************
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