I am tried to change the background color for div by using JavaScript, but the changes didn't applied because when I press on button the browser make reload for the page and restore to default setting without change.
How I can change the background color for div without page reload or the changes applied?