javascript/selenium-core/scripts/htmlutils.js
function hasJavascriptHref(element) {
    if (getTagName(element) != 'a') {
        return false;
    }
    if (element.getAttribute('onclick')) {
        return false;
    }
    if (! element.href) {
        return false;
    }
    if (! /\s*javascript:/i.test(element.href)) {
        return false;
    }
    return true;
}
function hasJavascriptHref(element) {
    if (getTagName(element) != 'a') {
        return false;
    }
    if (element.getAttribute('onclick')) {
        return false;
    }
    if (! element.href) {
        return false;
    }
    if (! /\s*javascript:/i.test(element.href)) {
        return false;
    }
    return true;
}
function hasJavascriptHref ( element ) { if ( getTagName ( element ) != 'a' ) { return false ; } if ( element . getAttribute ( 'onclick' ) ) { return false ; } if ( ! element . href ) { return false ; } if ( ! / \s*javascript: / i . test ( element . href ) ) { return false ; } return true ; }
Returns true iff the given element represents a link with a javascript
href attribute, and does not have an onclick attribute defined.

@param element  the element to test
Returns true iff the given element represents a link with a javascript href attribute and does not have an onclick attribute defined .