Hello,

Newbie to the forum and almost totally ignorant of javascript programming (although not totally ignorant of programming in general).

I'm trying to have music playing uninterrupted across all pages of an html website project by using the following method :

1. when index.html is loaded, the music.html page also opens automatically
2. the music.html page is automatically minimized
3. On each page of the project there is a "Turn music off" button/link. When pressed, the music.html page should be closing.
4. Ideally, the music.html page should also be closing when the user closes the parent window.
5. More ideally, the music.html page should also be closing even if the user does not close the parent window but just navigates away to another website.

Through internet research I managed to do 1 & 2 above using bits of javascript code.
I am now stuck with 3 and can't find how to do it (and not even dreaming yet about 4 and 5...)

Can someone assist ?
(a totally different approach to music-across-all-webpages is of course also welcome)

Thanks !!