How to play audio play on body onload function call

im trying to play sound onload body
//section 1
works only if i click
button on click test1()
my code works…but doesn’t play the file once
body onload fucntion
call runs

in , function test1 call

trying to play sound

tried doesn’t run onload body

i placed my explanation inside my code below
so you can see what I’m doing…

test1

Play1 Play1

Hi @bobby2025b

It is against security policy to play audio or video when a page loads.

You could add an event listener, so when the user inputs some action the audio plays.

Happy coding