Javascript - document.links.className ?
        Posted  
        
            by Slevin
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Slevin
        
        
        
        Published on 2010-05-07T12:59:38Z
        Indexed on 
            2010/05/07
            13:28 UTC
        
        
        Read the original article
        Hit count: 224
        
JavaScript
I have a Javascript question that I am curious about. When using:
var test = document.links(arrayNum).name;
Is it possible to dig deeper into specifying links? For instance, if there is just a group of links from within a div with an id that you would like to target as opposed to all the links on the page could you write something like:
var test = document.getElementById('divId').links(arrayNum).name;
Or could I add a class to the statement to target only the links associated with it?
var test = document.links.className(arrayNum).name;
Is anything like this feasible?
© Stack Overflow or respective owner