Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

82
Visualizações
How to play a background audio in website for all page?

I want to use background audio for all pages of the website but it shouldn't be started from the beginning if I refresh the page or redirect to another page. currently, I'm using this code

window.onload = function() {
   var audio = new Audio('/wp-content/uploads/2022/05/shai-baba-chant.mp3');
audio.play();
}

It's working fine but there is the issue that if I refresh the page or go to another page it starts from the beginning. Is there any way to push and resume the audio after page load again?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda