Prevention and Treatment of Conjunctivitis in Newborns. To prevent neonatal conjunctivitis, most hospitals are required by state law to put drops or ointment in a newborn's eyes to prevent disease. In the past, silver nitrate was used; it has been mostly replaced with antibiotic eye drops, such as erythromycin.