electromagnet

noun

1.
a temporary magnet made by coiling wire around an iron core; when current flows in the coil the iron becomes a magnet