The best way to deal with fleas is prevention.
Flea and tick preventatives kill fleas that come in contact with your dog, preventing your pup from bringing them home in the first place.
You can also use a flea shampoo or a fast-acting chemical treatment, such as a pill that kills the fleas on your dog within hours.