Hi folk,
I have an external CSS attached to a page.
i need to capture the css rule for certain styles and assign the value to a variable.
I'm trying this with no luck.
Any advice would be much appreciated.
var Test1=document.styleSheets[0].cssrules[45].style.cssText
Thanks!
I have an external CSS attached to a page.
i need to capture the css rule for certain styles and assign the value to a variable.
I'm trying this with no luck.
Any advice would be much appreciated.
var Test1=document.styleSheets[0].cssrules[45].style.cssText
Thanks!