Spaghetti Tom
Sunday, November 24, 2019
the proper way to set the background image of an element in JavaScript which Edge and Chrome will respect
document.getElementById('x').setAttribute("style", "background-image: url('/" + y + "')");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment