Hey guys, I want to be able to choose between two different stylesheets based on whether the browser supporst DOM2 or not. I had originally thought to use if(document.getElementById){ document.write("<" + "link rel='STYLESHEET' type='text/css' href='style_DOM.css'>"); else{ document.write("<" + "link rel='STYLESHEET' type='text/css' href='style_OLD.css'>"); } but that doesn't seem to work. Any ideas on how to accomplish this? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.aspReceived on Wednesday, 28 November 2001 13:15:34 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT