Regular on/off switches rely on fingers and springs to bring bits of wire together or apart. When the wires touch, electrons flow from one to the other, and your computer/nightlight/sock warmer is on.