Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body style="background:#f3f3f3 url('w3css.gif') no-repeat fixed;"> <h1>HTML Style Object</h1> <h2>The backgroundAttachment Property</h2> <p>The background attatchment is:</p> <p id="demo"></p> <p> <br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> Some text to enable scrolling. <br><br><br><br> </p> <script> let back = document.body.style.backgroundAttachment; document.getElementById("demo").innerHTML = back </script> </body> </html>