We describe a method for measuring the position of a Josephson junction from outside the cryostat. An inhomogeneous ac magnetic field from two opposed coils modulates the critical current of the junction unless it is in the central region where the field is small. We use the technique to measure the critical current of individual junctions in a series-connected array, using electrical contacts across the entire string.