Toads and frogs will attack the glass if there is something moving on the other side as well. Maybe there is something outside his tank tempting him.