bt the problem is every time i change the page, i mean redirect to another tab…the the sound also reloded and paly from starting
i want the sound sould be play contineously in my site…
The only way I could think of to achieve this would be to update the page via Ajax. That way you avoid the page refresh which will reset the audio playback.
There are lots of solutions for this if you google it. Have you tried looking online for what’s available. There’s nothing new under the sun. Try something like “how to play music continuously” etc.
A lot of people consider it bad manners to play sounds on a website without the visitor’s permission. At least if you must play sound provide an off/mute option.