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.
When your puppy reaches adolescence, he may be unable to control his impulses and start to test limits (just like a human child). Adolescent jumping up can turn into “nose boinking” which can lead to broken glasses or even a bloody nose. Jumping up often combines with mouthing behavior where the pup bites and grabs your hands, clothing or even your derriere in a grabbing game of tag.
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!
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 in human households try to lick the weird, flat, usually bald body part we have instead of a muzzle. When a cute little puppy jumps up to lick face, many people can only say “Awwww!” Hey presto! Jumping up has been rewarded. The puppy’s natural inclination is now a learned behavior. Too bad for the dog when he’s nine months old, bigger and less cute, muddying the pinstripes and knocking Granny to the ground.