Therefore, you may opt for the Umbilical Cord Method or the Gate/Pen Method.
The Umbilical Cord Method - This is a great method for toy breed dogs such as the Yorkie. You can have your freedom of moving around, your pup can have their freedom to play and you can both close to each other. You will simply attach a leash to his collar or harness (harness is best to avoid neck injury) and thread the other end through your belt or belt loop. This keeps a pup from roaming out of sight and allow you to do what you wish to do in the home. Be careful of walking around too fast. This method calls for you to take him or her outside or to the pee pad at all of the times listed above.
Gate/Pen Method -
For those of you who need to leave the house on a regular basis (work, school, etc.) you will need to keep your Yorkie confined at any rate. It is best to have your puppy set up in a small gated off area or inside a portable indoor canine playpen. Since this will be his 'spot' when home alone, it can be a great idea to keep him there when you are
home, so that his is confined and not able to pee all over the house, but also so that he does not associate the area just with being alone. This method calls for taking the dog outside or to the litter box at all of the times listed above.
A note about crates - Too many owners keep their puppies in the crates all day, assuming that is what is supposed to be done. However, crates are not recommended, even at night. They are overwhelmingly confining and can cause a dog to feel so claustrophobic that he develops stress-related behavioral issues and panics when placed inside. In addition, living in a crate severely limits the important elements of socialization for the pup. Since a dog will pee or poo regardless of the size of his area when he simply cannot hold his needs any longer, there is no benefit to keeping a dog in such a small area. Best is a canine dog bed, placed inside the playpen or gated off area.