I believe this concept is covered at Sitepoint as well;
http://www.sitepoint.com/article/standards-compliant-world

Ps have covered this in the list before, could probably find relating
information by searching through the archives. 

Tim Hill
Computer Associates
Graphic Artist
tel: +612 9937 0792
fax: +612 9937 0546
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JOHN FENDER
        Sent: Saturday, 17 July 2004 6:33 PM
        To: [EMAIL PROTECTED]
        Subject: Re: [WSG] What to do when an External Link won't
Validate?
        
        
        Shane,
         
        One way around the problem is to use some Javascript and the
rel="external" property.
         
        Firstly, here is the Javascript:
         
        function externalLinks() { 
         if (!document.getElementsByTagName) return; 
         var anchors = document.getElementsByTagName("a"); 
         for (var i=0; i<anchors.length; i++) { 
           var anchor = anchors[i]; 
           if (anchor.getAttribute("href") && 
               anchor.getAttribute("rel") == "external") 
             anchor.target = "_blank"; 
         } 
        } 
        window.onload = externalLinks;
         
        Next, alter the <a> tag to include rel="external" instead of
target="_blank".
         
         
        I use this on my sites, it works fine and it validates.
         
        Hope this helps,
         
        John Fender
         


        Shane Helm <[EMAIL PROTECTED]> wrote:

                I have a site I am working on. All the pages I've
created validate 
                except:
                http://sonze.com/isl/res1.html
                
                An external link to another site doesn't validate (line
40). I get 
                several errors. Is there anything I can do to make the
page validate 
                or is it a lost cause since I don't control the external
site I'm 
                linking to?
                
                Thank you in advance.
                
                Shane Helm
                { sonzeDesignStudio(tm)
                *****************************************************
                The discussion list for http://webstandardsgroup.org/
                See http://webstandardsgroup.org/mail/guidelines.cfm
                for some hints on posting to the list & getting help
                *****************************************************
                
                

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