How you you set the href attribute of an a element? This function works in FF, CHROME, and SAFARI but not in IE 8 or 9. In IE 8 or 9, both vars location and href only display "#"
var getLocation = function(href) {
l = document.createElement("a");
l.href = href;
// or l.setAttribute('href', href);
confirm( "Location = " + l + " href = " + href );
return l;
}