In Javascript it often makes sense to attach a stylesheet rather than style a bunch of individual attributes. Appending a stylesheet to the DOM has a number of advantages: Stylesheets can be easier to work with than Javascript—it’s just more natural to use CSS syntax for styling. It’s nice to avoid the cross-browser headaches associated [...]
↧