So how would I change the CSS styles within embedded CSS with JavaScript only? ex. if this is in the head of the HTML file:
<style>
.middleBTN {
background-color:red;
}
</style>
How would I change it to this within the embedded <style> using JavaScript only?
<style>
.middleBTN {
background-color:blue;
}
</style>
I have an element on a page that does not respond to dynamically changing the color using a JavaScript function. It will however respond to a change from the stylesheet or from the embedded CSS styles.
document.getElementById(id).style.backgroundColor = 'blue'