Rechargeable or button batteries can be brought to the Transfer Station on East Coast Road in Danvers. These items are placed in a shed and collected by Covanta for proper disposal.
Other locations that recycle these types of batteries can be found here:
http://www.call2recycle.org/what-can-i-recycle/#prettyPhoto
Please note that ALKALINE batteries (dry-cell single-use AA, AAA, C, D, etc.) can be disposed of in your regular trash.