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.
While the idea of "training" may seem daunting, it is simply teaching an animal what behavior works or doesn't work through resulting consequences — so whether you realize it or not, you are actually training your dog every moment of the day. Fortunately for you, preventing jumping is possible even without structured training. There are some simple solutions to this problem that require minimal effort and fit easily into your normal interactions with your dog.
Jumping up seems cute when your puppy is a little guy, but when he grows into an adolescent, jumping on people can become more than rude. These juvenile delinquent dogs haven’t learned how to control their excitement and can bruise, scratch or knockdown owners when they launch themselves and plow into you with their paws and claws. With small dogs and young pups, these tips to stop jumping up can work.
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!
I remember going to a dog park where a little 4-month-old Boxer puppy ran around jumping on everyone. The dog was not heavy enough to knock most of the adults down. However, it left everyone with muddy pants and the dog was big enough to knock over small children. The owner did nothing to stop the jumping puppy. After all, it was just a small pup. Everyone around her was pretty annoyed at the muddy prints the dog was leaving all over their clothes. That is an owner who will have a problem with her dog jumping on people when it gets older.