<button onclick="color()">Rəng dəyiş</button> <script> function color(){ let c = "#" + Math.floor(Math.random()*16777215).toString(16); document.body.style.background = c; } </script>