Customizing the behavior of the "continue" button

If you post in several forums, you should probably crosslink them so that people don’t try to answer them independently. Here’s the other post, for reference: Customizing the Behavior of the 'Continue' Button