Substitute Kieron Bowie hit a dramatic stoppage time winner as Northampton clinched their third win in four Sky Bet League Two games, 3-2 at winless Crawley.
James Balagizi gave the hosts an early lead, but Sam Hoskins scored twice in quick succession to put the Cobblers ahead midway through the half.
Balagizi equalised just after the hour but Kieron Bowie settled the issue in the first minute of added time by lashing into the roof of the net from a pass by Hoskins.
Crawley went into the game desperate to end a barren run which had seen them fail to score in six of their previous seven league games and Balagizi struck to give them the perfect start after only four minutes.
The recalled Liverpool loanee steered the ball home from close range after a low cross by Ashley Nadesan.
The Cobblers equalised in the 13th minute when wide man Hoskins marked his 300th appearance for the Cobblers by firing in from just inside the area after an attempted clearance by Tom Nichols.
Hoskins was on target again 10 minutes later, rifling his fifth goal of the season low into the bottom corner direct from a free-kick 25 yards from goal.
The same player presented a danger again shortly after the break when he cut inside, firing a deflected shot just over.
Northampton’s former Sunderland keeper Lee Burge denied the onrushing Nadesan, before Crawley drew level with Balagizi calmly steering his second into the net in the 61st minute after being set up by Nadesan.
Nadesan should have done better when put through by Balagizi but he shot tamely at Burge, with on-loan Fulham forward Bowie winning it late on.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.