<html>
<head>
<script>
function displayResult()
{
document.body.style.backgroundColor="#f3f3f3";
document.body.style.backgroundImage="url('img_tree.png')";
}
</script>
</head>
<body>
<h1>Hello World!</h1>
<br>
<button type="button" onclick="displayResult()">Set background image</button>
</body>
</html>