I am trying to make a website that loads all pages using AJAX
. Here's a simple piece of JS
that does that:
$.ajax({
url: url,
type: 'GET',
success: function(html) {
document.open();
document.write(html);
document.close();
}
});
This obviously works and updates my current page content.
The problem is I want to keep one div
unchanged (let's call it .player-wrapper
). This div
is actually an <audio>
wrapper which I want to keep playing (and this is the reason I AJAXified the entire website). Is this possible?