Using the following code, I get the correct results when in firefox, but I get undefined in IE. Any idea's?
(p.s. Sorry for the double post, this one really isn't related to my last post about onclick)
Code:
if(window.addEventListener){ // Firefox
document.links[i].addEventListener('click',function(){ openQuickWindow(this.href)}, false);
} else { // IE
document.links[i].attachEvent('onclick', function(){ openQuickWindow(this.href)});
}
|