We demonstrate a detection method for microwave spectroscopy on magnetization reversal dynamics of nanomagnets. Measurement of the nanomagnet anisotropic magnetoresistance was used for probing how magnetization reversal is resonantly enhanced by microwave magnetic fields. We used Co strips of 2 µm × 130 nm × 40 nm, and microwave fields were applied via an on-chip coplanar wave guide. The method was applied for demonstrating single domain-wall resonance, and studying the role of resonant domain-wall dynamics in magnetization reversal.