The paper includes a new aspect on elimination of the composition gradient in electrodeposited magnetic thin films. By addition of cathodically reducible ions of antimony, selenium, or tellurium to the electrolyte, it is possible to incorporate these non-magnetic elements in the initially deposited film zones preferably. Because of the high amount of the nonmagnetic element these inhomogeneous zones of the ternary Permalloy film become non-magnetic and do not affect the homogeneous zones of the film used for storage purposes. Besides the examined systems Ni-Fe-Sb, Ni-Fe-Se and Ni-Fe-Te, some other ternary or quaternary systems given in a forecast may show this effect. Experimental conditions and data support the investigations.