Fire javascript on a form submit Even the searching I have done that looks like there may be a solution doesn't really seem to answer this.

I have a form with an input value.  When the user enters a value and clicks submit, I want to call a javascript routine and make that value available to it.

It seems simple enough, but I can't really find a good answer.
You need some jQuery on the page, e.g:

Drupal.behaviors.form_submit_processor = {
  attach: function (context, settings) {
    $("form#my-form").submit(function(e) {
      alert('form submitted');
      alert($('form#my-form #edit-name').val());
    });
  }
}


You could add to your theme script.js, with drupal_add_js or form_alter and $form['#attached'] ( recommended )