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
‹
›
Home
View web version
No comments:
Post a Comment