hi guys,
The following code is located at masterpage <HEAD>
1) how can i call it from my buttton? <asp:Button ID="Button1" runat="server" Text="Button" onclick = "PlaySound()" />
2) is it possible to make it as a function and able to trigger it in page_load or other situation? pls advice. TQ
<script type="text/javascript">
var soundObject = null;
function PlaySound() {
if (soundObject != null) {
document.body.removeChild(soundObject);
soundObject.removed = true;
soundObject = null;
}
soundObject = document.createElement("embed");
soundObject.setAttribute("src", "sounds/sound.wav");
soundObject.setAttribute("hidden", true);
soundObject.setAttribut ...
Go to the complete details ...