0
Great, I’m trying to make a game menu on HTML5 + Javascript + CSS3 and when I click on a button I want you to change the page html, but may the same music continue to give.
I suppose with the method audio currentTime, but I don’t know how to pass as parameter. To change page I am using the method window.location.assign(html file).
You can explain better what you mean by "but let the music keep changing" ?
– Sergio
Continue to give* already edited
– João Castilho
But do you mean the same song in the same place or starting to "give"/play alone? You really need to reload the page?
– Sergio
To the same song in the same place. I suppose I have to reload the page since the button redirects me to another menu.
– João Castilho
The easiest thing for you is to use jQuery to order the pages. So in the click you load the page inside a div without updating the whole document. And the music continues to play. If you want a reference to open the page inside the div go to http://www.codigosnaweb.com/forum/Enviando-dados-via-POST-ou-GET-com-jQuery_3_2830.html
– forumcodigosnaweb