I am trying to change url(herf) from style . Check it
<iframe src="https://www.website.com/............" heght="100%" width="100%" >
#document
<!DOCTYPE html>
<html>
<head></head>
<body>
<a class="class" href="https://www.website.com/-----" style="background: url("https://www.website.com/abc.png") center center / 100% no-repeat; width: 110px; height: 26px;"></a>
</body>
</html>
<iframe>
I want to change image url with javascript
: style="background: url("https://www.website.com/abc.png")
With Another url .
Like that
: style="background: url("https://www.website.com/xyz.png")
image xyz.png in important to change.
To change an element's style from Javascript, you can do so:
Is this what you want?