Invokes an event each time an anchor is created.