Substitute Matt Green bagged a brace as Mansfield scored two stoppage-time goals to snatch a 3-1 victory in an absorbing local derby with Notts County.
The Stags had roared ahead when striker Green came on in the 54th minute and netted with his first touch seconds later.
Pat Hoban nodded the ball down to him in the box and his finish found the net via a deflection off Richard Duffy for Mansfield's first home goal in 440 minutes of football.
It seemed Notts had rescued a point when Alex Rodman scored with another deflected finish from a Vadaine Oliver nod-down eight minutes from time.
But a minute into added time Matt Tootle tripped Mal Benning in the box and Green dispatched the penalty high into the top-left corner.
And there was still time for fellow sub Darius Henderson to out-muscle two defenders in the box and steer home a low finish - his first goal for the club - to seal the Stags' first home win in five and first league victory since August.
Notts County have appointed Mark Cooper as their new manager on a deal which will initially run until the end of the season.
Jamie Fullarton was sacked by the Magpies following Saturday's heavy 4-1 defeat at home to Exeter, just 69 days and 12 games after taking charge.
Owner Ray Trew has moved swiftly to bring in Cooper, 47, on an incentivised deal, meaning if the former Swindon boss reaches an agreed points total it will automatically result in a permanent contract.
"I said on Saturday that what we need now, as a club, is stability, as we look to resolve the change of ownership and that is why I have turned to Mark to bring his experience and knowledge to the club to help turn things around on the pitch," Trew said in a statement.
Notts County have parted company with manager Ricardo Moniz.
Coaches Dave Kevan and Dean Yates have also left the League Two club.
The Magpies have won just two league games since October and sit 15th in the table following their relegation from League One last season.
Academy boss Mick Halsall and under-21 team coach Richard Dryden will take interim charge of the first team, the club said in a statement.
Former Red Bull Salzburg and 1860 Munich boss Moniz lasted less than nine months at Meadow Lane, having been appointed in April.
Teddy Sheringham started life in management with a 2-0 home defeat as Stevenage were beaten by a new-look Notts County.Read the full story ›
Ji So-Yun scored the only goal of the game to give Chelsea Ladies a 1-0 victory over Notts County in the Women's FA Cup final.Read the full story ›
Wembley Stadium hosts the women's FA Cup final for the first time this weekend when last season's beaten semi-finalists meetRead the full story ›
Notts County have appointed Ricardo Moniz as their new manager just a week after the club announced that he was unable to commit to the role.
The former Tottenham coach pulled out of the running due to "family reasons" at the end of March but on Tuesday moved to Meadow Lane on a three-year deal.
Notts County have sacked manager Shaun Derry after a run of three defeats in last four League One games.
A football club has banned the whole of Hungary from posting on its Facebook page after being inundated by fans of their latest signing.Read the full story ›
Notts County striker Kwame Thomas was sent off against Doncaster after receiving a second booking for walking off the pitch too slowly.
Referee Richard Clark produced the second yellow card as Thomas sauntered across the turf in anticipation of being replaced by Billy Daniels late on in the goalless draw.
Clark didn't seem to immediately realise that he had already cautioned the striker, but eventually sent him off.
After the game, County assistant manager Greg Abbott said: “I think, to be fair, in defence of the referee, if he’d have realised it was his second one he would have rushed over and ushered him off without doing the card.
“I’ve never seen a sending off like that. In hindsight, the referee maybe, so late in the game, would have thought twice if he’d have known it was his second.”