Thread: Attaching CSS
View Single Post
Old 17-09-2003, 05:20   #1 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,674
Attaching CSS

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?
  Reply With Quote