I have a website that contains songs, and also an .mp3 player on the bottom.
When you click a song the player starts playing the song, but when you try to navigate to the website and lets say clicking an album, you will naturally get redirected to www.mysite.com/?album=test
and as a result, the song will stop playing.
I am trying to make the player, (basically the <div>
in which the player is inside) no reload, everytime i click an <a href>
or a button
. To make it clear, you can see https://soundcloud.com/ for example. This is how i want my site to behave like.
Now, if I use jQueries on every <a href>
, the URL of the page will remain the same. Which i don't want to happen. Also i heard that iframes, is a bad solution. So, how does https://soundcloud.com/ and similar websites achieve what i am trying to do ? Somebody knows how to do this ?