I am trying to attach a css style sheet to a dynamically generated html page. I'm using the following line of code, but it keeps crashing IE
mainMenu.document.write("<link rel='stylesheet' href='/webnativedoc/images/houseStyles/mainMenu.css' type='text/css'></head>");
Is this line correct or are there some obvious mistakes, there is a lot of other script flying around at the same time but this all works fine without the above line of code.
Any ideas?