If your dog has urinary incontinence and you want to treat it you'll need to take the dog to the vet where they can find out what is causing the actual urinary incontinence in your dog.
They should be able to get your dog some medication to help with the urinary incontinence.