Use electronics with rechargeable batteries and avoid single-use ones. You will save money but more importantly you will reduce the amount of waste.
At the end of the life cycle of the batteries always recycle them in dedicated containers. Generally you can find those in shopping centers or supermarkets. Batteries are toxic and should not be sent to landfill. Easy!