Lets say that I wanna change the styles of my web page by clicking a buttom, I have a link to the file css/styles.css, it has the first styles, so if I click a button, colors must change (those colors are in another css file);
should i select the atribute href and replace the value for the new file css/styles2.css. with JS
Or what would be the best way to do it?
Thanks for your help
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/styles.css">
<script src="js/all.min.js"></script>
<title>Document</title>
</head>