Why does my roomates dog pee when he gets nervous?? ANd how do we make it STOP!!!!?

Hes two years old and potty trained. yet tonight when he got his leg stuck in the cord of the lap top he freaked out and peed on himself when we were trying to help him. ANY SUGGESTIONS
9 answers 9