Comment

Daniel Danopia

Just pass 'this' and then you don't have to do an ID lookup.

Parent comment

Rich

I didn't want the user to see the name of the button suddenly change to a piece of code the moment it's clicked on. My solution involves a longer bit of javascript, but it's a one-time cost since every page that uses just links to a site-wide .js file, and the in-button portion is pretty simple. Plus it's completely transparent to the user. I've made a slight change to it, in that the button HTML code is now: (Replaced hard-coded ID with this.id)