Why does the white flag mean surrender?

I've seen it in cartoons, documentaries, books and other places. But why does it mean surrender? How did it originate?
5 answers 5