Hello all, very specific problem for you all. I'm trying to add an onclick event to play a clicking sound when a link is clicked.
Using this code http://webdesign.about.com/od/sound/...sound_oncl.htm
(yes I've put the dummy span in my body as well)Code:<a href="index.php" onclick="playSound('button.wav');">HOME</a>
I've followed all the instructions properly, and yes it works fine onclick when the href is blank only.
But as soon as I point my link to another page (like it should be above, at index.php), the sound will just not play. Now I'm assuming it's because the page changes perhaps before the sound has the time to load and play? Or perhaps I'm just not getting something... Either way, a work around or an idea on what might be happening would be much appreciated. Thank you.Code:<a href="#" onclick="playSound('button.wav');">HOME</a>