Table of contents Home page
Execute this code
var toggle var body = document.getElementById("body") if (confirm("Do you wish to change the background colour of this page?")) { if (toggle) { body.style.backgroundColor = '#ffcc00' toggle = false } else { body.style.backgroundColor = '#d30300' toggle = true } }