How to get td background value?
-
Hi, I am trying to remove get some url's from a site using opera userjs feature. The problem is that the site uses the following syntax to set td background:
Edit: i dont't know why cp replaces some things: 1) td removed -> td background 2) background-removed -> background-position I can access the style attributes just fine, but i cannot get the value of the background image. I try to use it like this (prints undefined):
alert(img.parentNode.parentNode.background);
This works (but does not give me what i need):
alert(img.parentNode.parentNode.style.background);
How does the last one even work, i cant find the .background attribute from w3schools, i see that background-image attribute is available. But mainly, how to get the td background=... value? Thanks
-
Hi, I am trying to remove get some url's from a site using opera userjs feature. The problem is that the site uses the following syntax to set td background:
Edit: i dont't know why cp replaces some things: 1) td removed -> td background 2) background-removed -> background-position I can access the style attributes just fine, but i cannot get the value of the background image. I try to use it like this (prints undefined):
alert(img.parentNode.parentNode.background);
This works (but does not give me what i need):
alert(img.parentNode.parentNode.style.background);
How does the last one even work, i cant find the .background attribute from w3schools, i see that background-image attribute is available. But mainly, how to get the td background=... value? Thanks