Dog sat on edge of bed learns a painful lesson

Dogs may be a man's best friend - but they aren't always the most intelligent of pets.

Take this pooch, who was happily looking out of the window. What could possibly go wrong?

Watch the video above to find out what happens next.