<!DOCTYPE html>
<html>
<body>
<h1>Hello World!</h1>
<button onclick="myFunction()">Set background</button>
<script>
function myFunction() {
document.body.style.background = "#f3f3f3 url('img_tree.png') no-repeat right top";
}
</script>
</body>
</html>