What is the best way to make a form with button out of this:

<A href="javascript:SomeFunction('open','Some Directory/someprogram.exe');">

I tried replacing the action contents with the href contents, but all the form did was reload itself. Thanks in advance.