you do not even need to have any function. you can just use: <a href="javascript:void(0);" onclick="...">
Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 29/06/2009 03:15, David McGuigan wrote: > <a href=" javascript: functionThatExistsButReturnsFalse( ); " onclick=" etc( > ); ">etc</a> > > So, accessible to your page you'd have a > > function mute( ){ return false( ); } > > And then your buttons could be: > > <a href=" javascript: mute( ); " > onclick="document.getElementById('form').reset()">clear</a> > <a href=" javascript: mute( ); " > onclick="document.getElementById('form').submit()">send</a> > > You may be able to return false directly in the href, I can't remember. > > > On Sun, Jun 28, 2009 at 12:33 PM, Matthew Smith <[email protected]>wrote: > >> I have a cfform with the following for reset and submit: >> <a href="##" onclick="document.getElementById('form').reset()">clear</a> >> <a href="##" onclick="document.getElementById('form').submit()">send</a> >> >> Clicking the reset button clears the form but the goes to domain.com/#, as >> does the submit button. >> >> I can change it to this, and it works properly, but hovering over the >> button does not change the pointer. >> <a onclick="document.getElementById('form').reset()">clear</a> >> <a onclick="document.getElementById('form').submit()">send</a> >> >> Any way to do this? >> >> Thanks. >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324098 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

