Jodman
12-16-2005, 04:28 PM
Is it possible to do the following or is my syntax wrong?
function stopbill(btncode){
switch(btncode)
case "dlp":
window.alert("Stop")
case "dlb":
window.alert("Back")
case "dlf":
window.alert("Next")
}
Here is the HTML code where I call the function.
<div align="right">
<a href="#" id="dlb" onclick="return stopbill('dlb')">
<img src="images/bctrl.gif" alt="Previous" border="0" id="dlbi"/>
</a>
</div>
Thanks!
Jodman
function stopbill(btncode){
switch(btncode)
case "dlp":
window.alert("Stop")
case "dlb":
window.alert("Back")
case "dlf":
window.alert("Next")
}
Here is the HTML code where I call the function.
<div align="right">
<a href="#" id="dlb" onclick="return stopbill('dlb')">
<img src="images/bctrl.gif" alt="Previous" border="0" id="dlbi"/>
</a>
</div>
Thanks!
Jodman