<!DOCTYPE HTML> <html> <body> <audio id="a"></audio> <script> document.body.offsetTop; document.getElementById("a").setAttribute("controls", ""); </script> </body> </html>