+ 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 Answers
+ 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).