| firefox | IE6 |
|---|---|
| element.setAttribute("class","whatever"); | element['className'] = "whatever"); |
| element.name = "daname"; | (may need) element.id = "daname"; |
| window.getSelection().toString()
OR
document.getSelection() |
document.selection.createRange().text |
| childNodes[] | children[] (IE4 - does not have text node type, does not consider strings of text to be children |
| getElementById() getElementsByTagName() |
(IE4) all[] all[0] all["elementname"] all["elementid"] |
| fixed (css) positioning | (doesn't work in IE6) |
| absolute positioning | in IE4 suggested you use
<div style="position: static;">
|
| named links |
document.links.yahoolink //doesn't work in IE6
//USE getElementById instead
dalink = document.getElementById("dalinkid");
document.write(dalink.innerHTML + " - ");
|