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.
6.6m questions
8.7m answers