I see on pretty much all message boards, when you hit the post button the letters turn grey and you cannot press the button again. It always changes it's text too. From "Post" to "processing please wait"

I'd like to figure out how to do that. Disable double posting and to change it's text to "processing" Anyone have any links or ideas?