<html>
<head>
<style>
body {
background-image: url('img_tree.png');
background-repeat: no-repeat;
}
</style>
</head>
<body>
<button type="button" onclick="myFunction()">Position background image</button>
<script>
function myFunction() {
document.body.style.backgroundPosition="top right";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_backgroundposition by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:07 GMT -->
</html>