Birth control

If the birth control pill is supposed to prevent you from ovulating, what's the white gooey stuff that comes out of my vagina every once in awhile? Is that not what ovulating is? I'm still kinda new.