Things attracted to a permanent magnet become temporary magnets themselves. A coil of wire with an electric current flowing through it becomes a magnet. Putting iron inside a current-carrying coil greatly increases the strength of the electromagnet.
9.4m questions
12.2m answers