I have a button on 1 of my site pages that I wish to have multiple onclick actions. It is a bid button for an auction type page. I want to be able to click it and not only have it place the bid, but play a sound. the sound plays fine on a seperate standalone button, but I need to have both functions work on the same button. This is what the code for the button looks like with just the bid function.
and this is the sound button by itselfCode:<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();" />
I have triedCode:<input type="button" name="sound" id="sound" value="play sound" onclick="playSound(0);" />
but it didnt produce the sound when I clicked the button. thanks for your helpCode:<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();playSound(0);" />



Reply With Quote

Bookmarks