Call the new function when the button is clicked. (If it has to be triggered by a link, you'll have to have the page check to see whether it's been called from itself. If it has, and only if it has, execute that function.)
how to I write a link to do what , this is for a win 7 gadget