Why does your dog go to the bathroom inside?

Your dog is probably just trying to make everyone know that it is top dog by going to the bathroom inside. (please tell me where did it go to the bathroom and that would help me get more information on it.) If you really want to learn about this behavior there is a show called it's me or the dog that will answer a lot of your questions.