Hi everyone, I’m using this code to create an interaction beetween JS and CSS
[CODE]document.styleSheets
What I need to do is to retrieve the original href attribute of the css (<link href=”desired_url” …) and to change it from a relative path to an absolute one.
I succesfull retrieved the originale url using
[CODE]document.styleSheets[i].href
but when i try to set the new url (after my own changes) with this code
[CODE]document.styleSheets[i].setAttribute=(‘href’, newurl);
I can’t see the result I expected neither I got any error! (I use firebug to detect code’s errors)
The url simply does not change (I check it with an alert located after the code)…any idea?