The strongest magnets we have are made in this way. Student volunteers are challenged to pull apart a powerful electromagnet powered by a single flashlight battery. A beam of electrons is produced within a partially evacuated discharge tube. The beam is deflected when a magnet is brought near. If the magnet is flipped over, reversing the field, the direction the beam is deflected is reversed.
Electric charges feel a force when they move through a magnetic field.
Since magnetic fields are produced by moving charges, the magnetic force is just the way charges affect one another when there is relative motion between them. When the magnetic field near a conductor is changed, by moving a magnet for example, a current is produced in the conductor. This is shown by moving a bar magnet in and out of a coil of wire connected to a current meter. This is also shown with a flash coil where a current produced in a wire loop by a moving magnet makes a small light turn on. This is called induction.