A cordless iron works by using electricity to heat up the metal it is trying to touch. This causes the metal to spark and create a sparks that can be used to press clothes.