electromagnet

ɪˌlɛktrə(ʊ)ˈmaɡnɪt

noun

a soft metal core made into a magnet by the passage of electric current through a coil surrounding it.