When in the onclick attribute you do not need to specify is javascript.

This one works.
For the music examples site on Hazaramusic.org I testedused another suggestion

In IOS browser Puffin the pop-up window close button close not only the pop-up window,
but also the parent window, acting as as the ordinary browser 'window-close' (X), and opens a previous window.