Toddler Pees On Floor When Mad

Q our 3 year old son has been using the toilet effectively for six months but in the last week or so he has taken to secretly peeing in places other than the bathroom.
Toddler pees on floor when mad. Another time he said because i wanted to do you have. He again admitted he did it. He is 3 almost 4. Okay i am ready for the hate.
However most little boys don t pee in random places inside their houses particularly when they discover that it bothers their parents. After five years of doing this my grandfather who spoiled. She d get mad that she was in timeout and she d pee there purposely to try and get out. Instead i made her help clean it up we wiped down and changed clothes and then she went right back and her time started over.
He first urinated on the couch and blamed it on the dog. A couple of months ago my 6 yr old son started urinating on furniture and floors. I know he pees his panys because he doesn t wamt to take time to go to the bathroom and miss out on something or he waits until its too late and cant unbutton his pants or pull them down fast enough. When i found out and asked why he said i was mad.
He admitted to it when i was putting the dog outside. 2 days later i found a wet spot on his floor. As for peeing in the floor when i ask him why he says its because i made him mad. You know what made me stop.
They tried to be reasonable they told me it was wrong and not nice. Or you could try making him sit there in the pee until his time is up and then make him help clean it and change him. Since then i have found our recliner wet and he has admitted to doing that as. When i did the exact same thing to my parents.