JSFiddle - React, Tailwind, and code Playground
by incutonez
HTML
<body onload="loaded()">
<audio autoplay="autoplay">not supported</audio>
</body>
JavaScript
function loaded() {
var audioTag = document.createElement('audio');
document.body.appendChild(audioTag);
console.log(audioTag.autoplay); // outputs false... so it's obviously there!
// I've also tried audioTag.autoplay = "autoplay";
audioTag.setAttribute('autoplay', "autoplay");
}