Adding Custom Button to View

Adding Custom Button to View

I need to add a button to a view.  I know that I can do this by writing a function and then calling that function via custom action.  My problem is that I want it to work like a static button.  I doesn't have anything to do with the below records and the custom action forces me to attach the button to a record or set of records to iterate over.

I want to add a simple button to a view that calls a function (function that does not reference a record) but I do not want to have to build and entire html page just to add one single button.  Is there a way to add a button to a view that works similar to the add record button meaning it doesn't have to iterate over the records?  

Please help.  Thank you.