I'm writing a script to retrieve info from a tag which looks like this
Code: Select all
<div class="some class name" style="background-image:insert random url here"></div>
So, is there any way to extract that info?
Just a FYI: I've tried storing the classnames in a var using getElementsbyClassName and looped through them but they don't show all the class names - the one I need isn't there. I've checked with Inspect Element in IE and can confirm that the specific class name DOES exist. That's why I'm trying to meddle with the style properties now.
Thanks in advance for your help.