Mulitple "onclick" scripts

Discussion created by forthungm on Mar 5, 2014
I have multiple javascripts that I call that are all "onclick" events.  For example, I have a Drive time script and a Routing script.  Both are "onclick" events.  I don't know how to give the choice of which one to use in the application.  Do I make a submit button and somehow link it to that event?  Or a drop down menu with a link?  What is that best way to distinguish which script is going to be called when you click on a map?  Thanks.