During World War II, in August 1942, he managed to escape and move to the occupied Yugoslavia, Croatia. Immediately upon his arrival, Majder joined the Partisans. He was the intelligence officer operating in Croatian zone, and later a member of the Partisan General Headquarters.