The Anglo Saxons had an elected monarchy, although most people didn't vote, only a commitee of aristocrats, bishops etc.
As others have said, William of Orange was put in place by Parliament.
King Arthur: I am your king.
Woman: Well, I didn't vote for you.
King Arthur: You don't vote for kings.
Woman: Well how'd you become king then?
[Angelic music plays... ]
King Arthur: The Lady of the Lake, her arm clad in the purest shimmering samite held aloft Excalibur from the bosom of the water, signifying by divine providence that I, Arthur, was to carry Excalibur. THAT is why I am your king.
Dennis: [interrupting] Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.