Is it possible to do the following or is my syntax wrong?
Code: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.
Thanks!Code:<div align="right"> <a href="#" id="dlb" onclick="return stopbill('dlb')"> <img src="images/bctrl.gif" alt="Previous" border="0" id="dlbi"/> </a> </div>
Jodman
Bookmarks