JS Inspect CSS dari Console

document.createTextNode("#HTML1 {background:red;}")
"#HTML1 {background:red;}"
sty.appendChild(document.createTextNode("#HTML1 {background:red;}"))
#HTML1 {background:red;}
document.head.appendChild(sty)
​
var sty = document.createElement('style');
undefined
sty.type = "text/css"
"text/css"
sty.rel = "stylesheet"
"stylesheet"
sty.appendChild(document.createTextNode("#te {background:red;}"))
#te {background:red;}
document.head.appendChild(sty)
<style type=​"text/​css">​#te {background:red;}​</style>​

dibuat:1457681135954

Komentar

Postingan populer dari blog ini

windows 11 remove usb write-protected

Tutorial susah instalasi GeoServer di Windows

Bagian-bagian Browser

nyoblos perdana