What is the best thing to do if your child is having an epileptic fit?

i need to know if a child has epilepsy and is having fits what is the best thing to do?