RE: Using DOM to replace media attribute in the link tag on page load

Jonathan:
| 		mediaType.item(x).setAttribute("media", "all");
                          ^^^
should be:
            mediaType.item[x].setAttribute("media", "all");

Are you changing multiple stylesheet links? Simpler to give the link element
an id and use getElementByID().

David Perrell

Received on Monday, 21 July 2008 18:26:29 UTC