I'm such a javascript nono [2 puppy]
I found -what I think can be- a solution on experts-exchange but I'm not sure how to properly use it in DHE
This is the code I've found:
<script>
var id= "w001";
newWin=window.open('', id);
newLoc = newWin.location.href.split('/');
newLoc = newLoc[newLoc.length-1];
if(newLoc!='nw.html'){
newWin=window.open('nw.html', id, 'resizable,width=1015,height=700');
} else {
newWin.focus();
}
</script>
I have this hotspot on my site that I want to open a window with a music-player on it. This code should make sure that if that particular window is already open it won't reload. But... how and where can I insert this code?