Mossy Posted February 21, 2023 Share Posted February 21, 2023 Hi I have added the following code to onclick event of the button function click(sender, e, eOpts) { var audio1 = document.createElement('audio'); audio1.setAttribute('src', 'files/Alert.wav'); audio1.play(); } However the following code is not firing the sound event. btnSOS.Click; How can I invoke the sound from code? Thank you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 22, 2023 Share Posted February 22, 2023 17 hours ago, Mossy said: However the following code is not firing the sound event. Hello, Works for me. Check again please... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.