What is the meaning of Hatguard?

A string or cord used to keep a hat on the wearer's head.

Source: wiktionary.org