Javelin has not only the top-attack mode but also a direct-fire mode. This can be used against low-flying helicopters or fortifications. In Ukraine, there were cases when a Javelin missile hit and downed a low-flying Ka-52 attack helicopter.
More info