Hi I am trying to find the distance between 2 location on MapQuest. I have a function
MQA.EventUtil.observe(window, 'load', function()
This function is loaded on the page load but i want it to be on a button click. Can anybody suggest me what should i need to change to have it on a button click.