How do you keep an element on-screen when the user navigates off the page?
GavHern (64)

I'm wondering how sites like Soundcloud are able to keep an element there no matter what page the user is on. (In Soundcloud's case, the audio player.)

You are viewing a single comment. View All
vedprad1 (692)

I do not know exactly how that happens, but something you can do is make the component in an external window. It does not work exactly like how you probably want it, but that's what I would do.

window.open('https://repl.it/talk/ask/How-do-you-keep-an-element-on-screen-when-the-user-navigates-off-the-page/17042', 'ext', 'height=300,width=300', false);