hcvitto wrote:

: hi i'm using this code to add the target=_blank attribute to links.
: 
: $("a[href]").each(function(){
:               if ($(this).hasClass("ppt") || $(this).hasClass("pdf") || $
: (this).hasClass("allegato") || $(this).hasClass("doc") || $
: (this).hasClass("jpg") || $(this).hasClass("xls") || $
: (this).hasClass("external") || $(this).hasClass("zip")){
:                 $(this).attr("target","_blank");
:               }
:       });
: 
: it works fine in firefox but not with ie which throws a javascript
: error i can't identify.

    It works on IE6 on windows XP.

HTH,


Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

http://www.clarksonenergyhomes.com/wordpress/about/

Reply via email to