How to let php know another page is open?

Hi there again all
I am making a site that has a popout music player. My question is since the player is opened by javascript is there a way to let the original page know that the popout is open?

Well you could always set a variable in the javascript - a boolean flag… but you’re talking about the page and the subject is talking about the php script.

Which is it?