General lack of house training can be a cause of your dog peeing indoors. This is obviously more common in puppies. With any training, follow the golden rule of ‘reward the behavior you want, ignore the behavior you don’t’. Punishing the behavior of peeing inside can confuse your puppy into thinking you don’t want it to urinate or defecate, and can increase the anxiety around the act making the problem worse.
If they do toilet inside, remove them and place them where you would like them to toilet, then give a gentle pat. In conjunction with this, take your puppy outside regularly, and especially after a meal. When they toilet outside, quietly reward them with a treat or pat. Try not to get too over-excited about it. Read more about how to toilet train your puppy here.
If your dog is easily excited/anxious (the two can go hand in hand) then this can cause temporary loss of bladder control. This is common in puppies who are learning how to control their bladder and they can sometimes pee without knowing when they are especially excited.
If jumping on the bed is associated with anxiety or excitement for your pet, then it is best to ignore them if they get onto the bed. As with most behaviors, punishing your pet is fruitless, and can make the problem worse by increasing anxiety associated with being ‘caught’ on the bed.
If there is something else that is causing your pet to become anxious and they jump on the bed as a comfort mechanism, then this may be the underlying cause of the peeing (as opposed to the bed itself). In this situation, it may be best to create an area your dog feels comfortable that is not a bed! But you also need to treat whatever is leading to the underlying anxiety eg. Thunderstorms, separation from you, other noise, other fear of something etc.
Sticking to a daily schedule and good training can help to reduce anxiety. There are also anti-anxiety medications that can be very helpful and can be prescribed by your vet. A veterinary behaviorist is worth a visit if the problem is bothering you or is associated with other anxious behaviors. Any dog with even a hint of aggression should see a veterinary behaviorist ASAP.
Marking behavior is more common in cats, but certainly can occur with dogs. It is important not to punish the behavior, but certainly try to keep your dog out of the area where they are marking, then look to work with a veterinary behaviorist on the underlying anxiety or territorial behavior.