Javascript examples for CSS Style Property:backgroundRepeat
Return the background-repeat value of a document:
<!DOCTYPE html> <html> <body style="background:#f3f3f3 url('http://java2s.com/resources/a.png');background-repeat:repeat-y;"> <h1>Hello World!</h1> <button type="button" onclick="myFunction()">Get background-repeat value</button> <script> function myFunction() {//from www .j a v a 2 s . co m console.log(document.body.style.backgroundRepeat); } </script> </body> </html>