By playing some simple games like fetch with your dog, you can kill 2 birds with one stone. First is that the actual playing of the game will surely tire them out so much that they won’t have the energy to jump the fence. Second is that you are associating the fun of the game with the yard. If they have fond memories of the yard they will be less likely to try and get out.

Teach your puppy a conflicting behavior such as “fetch your ball.” She can’t jump up if she’s running to bring you her ball or favorite toy. Just the name of a ​special game or toy—“go get your bear!”—can change the dog’s focus and redirect the behavior long enough for you to evade the jumping. With enough repetition, your puppy will begin to associate your home-coming with “go fetch” instead of jumping up.
Puppies should be told from day one, "no jumping." Anything you do not wish your cute little puppy to do when it is full-grown should not be allowed when it is a puppy. Think about the behaviors you allow your puppy to do; is it something you will always allow him to do even when he is full-grown? If the answer is no, do not allow your puppy to do it from day one.
Also, it's your job to never let anyone else allow your puppy to jump up on them! They will say, "It's OK, she's just a puppy, I don't mind if she jumps on me". You must rush in and pull the puppy down immediately, put your pup in a sit, praise the puppy then scold the person ! Continue to hold the puppy in a sit and let the person greet the pup. Explain to them they can never allow the puppy to jump on them - the puppy must sit to be greeted. To stop the jumping up behavior in pups, I do as much people training as puppy training!

When your dog has all four paws on the floor, give him attention and praise. If he jumps up at any point, freeze with your arms folded on your chest until he calms down. Instruct guests and all members of your household to consistently ignore jumping. If you have visitors who ignore the no-jumping rules, keep your dog on leash during the visit and gently remove him if he jumps. For anything your dog gets in life, whether it's your attention or a meal, only give the reward when all four paws are on the floor. Jumping up should end all attention and rewards, while remaining fixed on the ground garners all the pleasurable reinforcement a dog desires — treats, petting, play.
If you have ever seen two dogs when they meet, they greet each other face to face, unless there is a massive size disparity. So, why are we surprised when that is how a dog wants to greet us? You come home from work and let your dog out, and they are excited to see you and excited to show you how much they have missed you. So they jump up on you to get closer and give you some love. 
Puppies should be told from day one, "no jumping." Anything you do not wish your cute little puppy to do when it is full-grown should not be allowed when it is a puppy. Think about the behaviors you allow your puppy to do; is it something you will always allow him to do even when he is full-grown? If the answer is no, do not allow your puppy to do it from day one.
×