<html>
<body style="background:#f3f3f3 url('img_tree.png');background-repeat:repeat-y;">
<h1>HTML Style Object</h1>
<h2>The backgroundRepeat Property</h2>
<button type="button" onclick="myFunction()">Get background-repeat value</button>
<script>
function myFunction() {
alert(document.body.style.backgroundRepeat);
}
</script>
</body>
</html>