Foamy saliva can occur during a seizure because the mouth is forced closed, which stimulates the salivary glands and makes you produce extra spit. When the mouth opens again, drool or frothy saliva can come out. Foaming at the mouth can also occur following a provoked seizure.