+ 1
Document.getElementById
document.getElementById("test").innerHTML = (l); document.getElementById("demo").style.backgroundImage = "url('http://cdn.bulbagarden.net/…/725Litten.…/600px-725Litten.png')"; is there a way to make this compact? like a shorter version.
2 odpowiedzi
+ 2
it is already short you can use jquery to make these commands more short
+ 1
No (at least if you don't using any framework).