obi_van_banan,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<style type="text/css">
body{
}
</style>
<meta charset="utf-8">
<script>
window.addEventListener('DOMContentLoaded', function() {
var x = localStorage.x;
x && change_color({value : x})
});
function change_color(obj)
{
obj.value && (document.body.style.backgroundColor = obj.value) && (localStorage.x = obj.value);
}
</script>
</head>
<body>
<button class="color" id="red" name="button" value="red" onclick='change_color(this)'>red</button>
<button class="color" id="orange" name="button" value="orange" onclick='change_color(this)'>orange</button>
</body>
</html>