I know how to open a new tab. For example, this is what I have:
<a href="pdfs/award_2.pdf" target="_blank" style="font-size:17px">Award</a></span>
This code, will open a new tab, and loads my award_2.pdf file. But how can I also do something that it plays a music also when the new tab is opened? And how can I make such that when I close the new tab, the music stops as well?
I also already have the audio tag code:
<audio id="audio1_3"><source src="sounds/audio1_3.mp3" type="audio/mpeg" /><source src="sounds/audio1_3.ogg" type="audio/ogg" />Your browser does not support the audio element.</audio>
But how can I make this plays/stops by opening/closing the pdf file?