Self-powered ultraviolet MSM photodetectors with high responsivity enabled by a lateral n+/n- homojunction from opposite polarity domains.