I'm wondering if there is a way to use :stringByEvaluatingJavaScriptFromString
to fetch a specific css attribute from an element.
For instance, say I want to validate a background image and the css specifies background-image: blue.png
. I'm having trouble getting :stringByEvaluatingJavaScriptFromString
to do anything other than the basic innerHTML
example.
document.getElementById
or document.getElementsByClassName
yield an empty array.