“event” in Javascript is deprecated and I cannot use “preventDefault()”

I am trying to use the event.preventDefault() method but I am continuously receiving error. It says that event has been deprecated. I am making a Firebase SignUp form and I want to prevent the form …