javascript add css style in html element code example
Example: js add css to document
document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';
document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';