How to make audio autoplay on chrome

My solution here is to create an iframe and audio tag aswell for non-chrome browsers and in my script var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); if (!isChrome){ $('#iframeAudio').remove() } else { $('#playAudio').remove() // just to make sure that it will not have 2x audio in the background } Solution #2: There is also another workaround for this according to @Leonard Create an iframe that doesn't play anything just to trigger the autoplay in the first load.

Actions