As you move across the period, the increased atomic number means more positive protons, which hold on to the negatively charged electrons more tightly (the electrons are in the same shell across the whole period). This leads to increased electronegativity as you move from left to right.