my headlights will shut off going down the road how do i repair this problem on 1995 Mazda B2300

it doesn't happen at any specific situation.

Asked by for the 1995 Mazda B2300
1-Suspect headlight switch or connection at the switch or both.
2-Same thing on combo.(dimmer) switch.
Does it do it on high beam or low beam or both?
2 more answers
agree with wetry
its most liker the dimmer switch i had the same problem and change it and hasnt done it again