Add css inline style using JavaScript
Add inline css style using JavaScript via document.createElement.
var style = document.createElement('style');
style.textContent = '.alert { color: red; };';
document.head.appendChild(style);
Add inline css style using JavaScript via document.createElement.
var style = document.createElement('style');
style.textContent = '.alert { color: red; };';
document.head.appendChild(style);
Comments
Leave a Reply