October 4th, 2002, 06:25 PM
<link rel="stylesheet" type="text/css href="style1.css" />
I need the script to find style1.css so that the name can be used later in a document.write script.
I'm looking into this method because it is an automated way to write the name of CSS, saving me time over many pages..
Can it be done?
October 4th, 2002, 07:09 PM
October 4th, 2002, 08:24 PM
Is there a way to get the full path to that file?
For pages I can use document.URL or location.pathname
At the moment i am using a combination of location.hostname then a string of text.
var cssURL = location.hostname + '/files/css/'