Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, I have a student I'm teaching who wants to add both a hyperlink (to another page in the website) as well as a sound to the bottom as it's clicked. He's set the action of the link to Javascript so that it plays his sound when clicked but we can't seem to also select a hyperlink to get to an different page of the site. Could anyone suggest a way around this? Many thanks, Abi |
||||
|
Sorry for the typo *button* |
||||
|
After the command to play the sound, simply add something like this: location.href = 'page.html'; So if he plays the sound for example by using playsound('foobar.wav'), then your code should look like playsound('foobar.wav'); location.href = 'page.html'; |
|