    # File lib/action_view/helpers/javascript_helper.rb, line 122
          def button_to_function(name, *args, &block)
            html_options = args.extract_options!.symbolize_keys

            function = block_given? ? update_page(&block) : args[0] || ''
            onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function};"

            tag(:input, html_options.merge(:type => 'button', :value => name, :onclick => onclick))
          end