TechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 2 years agoJavascript can create atomic bombsprogramming.devimagemessage-square50fedilinkarrow-up1547arrow-down148
arrow-up1499arrow-down1imageJavascript can create atomic bombsprogramming.devTechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square50fedilink
minus-squareRikudou_Sage@lemmings.worldlinkfedilinkEnglisharrow-up0arrow-down1·2 years agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-squareexscape@kbin.sociallinkfedilinkarrow-up1·2 years agoSure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.
document.querySelector('.whatever').style.color = "red";
Don’t recommend, though.
Sure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.