West Ham fought back from 2-0 down at Burnley to salvage their fifth successive Championship draw.
Martin Paterson sent Burnley in two goals to the good at the interval after Marvin Bartley opened the scoring with a fine individual effort.
But goals from Kevin Nolan and James Tomkins in two second-half minutes rescued a point for the Hammers.
Sam Baldock spurned a golden opportunity to take the points at the death, but blazed over from six yards.
DID YOU KNOW?
- West Ham have drawn seven of their last nine league games
The result, and victories for top two Southampton and Reading, left Sam Allardyce's men four points shy of the automatic promotion places, albeit with a game in hand.
Even so, it was a point more than they had looked like taking for much of the game.
The first clear-cut chance of the afternoon fell to the home side when recalled left-back Ben Mee found space to cross for Paterson, who sent his free header wide.
Carlton Cole should have given the Hammers the lead when he latched on to Martin Taylor's through-ball and rounded Clarets goalkeeper Lee Grant, but scuffed his shot into the side netting.
The visitors paid the price as Bartley charged past Danny Collins and unleashed a low drive that Robert Green could only touch into the corner of his net.
Burnley doubled their lead 10 minutes before half-time as Mee was allowed to advance down the left, with Paterson converting at the near post.
West Ham's comeback began in the 68th minute as Gary O'Neil lofted a speculative ball forward and Nolan lobbed the on-rushing Grant.
And two minutes later it was all square when Nicky Maynard flicked on Mark Noble's free-kick and Tomkins provided the decisive touch.
West Ham manager Sam Allardyce: "I'm flabbergasted how we did not win that.
"I'm stunned and shocked but that's football. I was stunned at half-time that we were 2-0 down. We dominated the game from the very start and kept slipping up. We kept missing chances. Whatever we did we couldn't find the net.
"In the second half we got better and better and then squandered so many chances. It's a massive cost to us because we should have won comfortably.
"This could be the turning point in our season with regards to getting automatic promotion. It makes things more tense and tight.
"I just told the players to carry on the way they were playing at half-time as chance after chance went begging.
"It was just two defensive slip-ups that cost us. The second one was an ordinary cross we should have dealt with. I've never seen a game like that."
Burnley manager Eddie Howe: "I'm very disappointed as we were excellent and very brave. We took 10-15 minutes to settle but we had a lot of confidence.
"They are a strong, physical side, but the third goal was crucial in the game and they got it.
"We have to say people are growing. We wanted to have a show of spirit and play for the club. I'm disappointed by the result but I'm very enthusiastic about the performance.
"We're kicking ourselves because I believe we had the capability of being good enough this year. We've surrendered some leads and that's something we need to focus on.
"We've competed really well against the top sides and given good accounts of ourselves in the big games. It's perhaps more the games against the teams down the lower end when we've struggled and dropped points when we should not have done so.
"It's such small margins as we could easily have been knocking on the door. We will have to learn that quickly for next year and keep the group together and have a good push for promotion."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The final whistle is blown by the referee.90:00 +3:24
Headed effort from deep inside the penalty area by John Carew misses to the right of the target.90:00 +0:49 Substitution
Substitution Junior Stanislas on for Martin Paterson.89:18
Charlie Austin takes a shot. Save made by Robert Green.88:18
Sam Baldock takes a shot. Save by Lee Grant. Gary O'Neil takes the outswinging corner, John Carew takes a shot. Lee Grant makes a save.87:34
John Carew takes a shot. Save made by Lee Grant.86:01 Substitution
Substitution Josh McQuoid comes on in place of Danny Ings.83:13
Shot by Sam Baldock from inside the six-yard box clear the bar.82:41
The official flags Chris McCann offside. Robert Green takes the free kick.81:28
Direct free kick taken by Robert Green.81:28 Substitution
Substitution Jack Collison leaves the field to be replaced by John Carew.81:28
Martin Paterson gives away a free kick for an unfair challenge on George McCartney.80:02
Inswinging corner taken by Kieran Trippier.80:02 Substitution
Substitution Marvin Bartley goes off and Charlie Austin comes on.78:15
Sam Baldock concedes a free kick for a foul on Kieran Trippier. The free kick is delivered right-footed by Kieran Trippier from right channel, James Tomkins manages to make a clearance.77:29
Short corner worked by Ross Wallace.76:34
David Edgar restarts play with the free kick.76:34 Booking
Booking Nicky Maynard is shown a yellow card.76:31
Nicky Maynard gives away a free kick for an unfair challenge on Ben Mee.73:55
Corner from the left by-line taken by Mark Noble, Danny Collins produces a right-footed shot from close range which goes wide of the right-hand upright.
Nicky Maynard produces a cross, clearance made by Kieran Trippier. Corner taken right-footed by Gary O'Neil from the right by-line, Header from deep inside the area by Danny Collins goes harmlessly over the crossbar.71:13
Free kick awarded for a foul by Kevin Nolan on Marvin Bartley. Free kick crossed by Kieran Trippier, Kevin Nolan manages to make a clearance.69:32 Goal scored
Goal! - James Tomkins - Burnley 2 - 2 West Ham James Tomkins grabs a goal from inside the area to the bottom left corner of the goal. Burnley 2-2 West Ham.68:47
Ross Wallace gives away a free kick for an unfair challenge on George McCartney. Mark Noble produces a cross,67:33
Mark Noble provided the assist for the goal.67:33 Goal scored
Goal! - Kevin Nolan - Burnley 2 - 1 West Ham Kevin Nolan gets on the score sheet with a goal from inside the area to the bottom left corner of the goal. Burnley 2-1 West Ham.64:08
The free kick is swung in right-footed by Mark Noble.64:08 Booking
Booking Michael Duff receives a yellow card.64:04
Michael Duff concedes a free kick for a foul on Nicky Maynard.63:24
Danny Ings has an effort at goal from 12 yards.61:41
Inswinging corner taken by Mark Noble from the left by-line, James Tomkins takes a shot. Save made by Lee Grant.58:13
Nicky Maynard is caught offside. Michael Duff takes the free kick.56:21
George McCartney takes a shot. Save by Lee Grant.56:08
George McCartney sends in a cross, Michael Duff manages to make a clearance.55:20
Ben Mee challenges Joey O'Brien unfairly and gives away a free kick. Robert Green restarts play with the free kick.53:56
Free kick awarded for an unfair challenge on Jack Collison by Marvin Bartley. The free kick is delivered right-footed by Mark Noble from right channel.51:39
Nicky Maynard takes a shot. Blocked by Marvin Bartley. Outswinging corner taken from the right by-line by Gary O'Neil.51:17
Sam Baldock concedes a free kick for a foul on David Edgar. Free kick taken by Dean Marney.50:49
The ball is swung over by Kieran Trippier.49:07
Martin Paterson produces a right-footed shot from just outside the box that misses to the right of the goal.47:28
Effort from 12 yards by David Edgar.46:51
Nicky Maynard challenges Kieran Trippier unfairly and gives away a free kick. Kieran Trippier crosses the ball in from the free kick, clearance by Danny Collins.45:01
The match restarts for the second half.45:01 Substitution
Substitution Nicky Maynard replaces Matthew Taylor.45:01 Substitution
Substitution Carlton Cole goes off and Sam Baldock comes on.45:00 +2:26 Half time
Half Time The players leave the pitch at half time.45:00 +1:38
Shot by Matthew Taylor. Michael Duff makes a clearance.45:00 +1:04
Free kick awarded for an unfair challenge on Joey O'Brien by Chris McCann. Robert Green takes the free kick.45:00 +0:48
The ball is crossed by Ross Wallace.44:08
Free kick crossed right-footed by Ross Wallace from right wing, clearance by Carlton Cole.44:08 Booking
Booking Jack Collison goes into the referee's book.43:57
Free kick awarded for an unfair challenge on Ross Wallace by Jack Collison.42:32
Carlton Cole gives away a free kick for an unfair challenge on Danny Ings. Lee Grant restarts play with the free kick.39:40
Jack Collison takes a shot. Lee Grant makes a save. Inswinging corner taken by Matthew Taylor, Lee Grant makes a save. James Tomkins produces a left-footed shot from inside the area that clears the crossbar.39:10
Foul by Kieran Trippier on Matthew Taylor, free kick awarded. The free kick is swung in right-footed by Mark Noble, David Edgar manages to make a clearance.37:51
Shot comes in from Ross Wallace from the free kick, save made by Robert Green.37:51 Booking
Booking The referee cautions James Tomkins for unsporting behaviour.37:45
James Tomkins concedes a free kick for a foul on Danny Ings.35:30
Ben Mee provided the assist for the goal.35:30 Goal scored
Goal! - Martin Paterson - Burnley 2 - 0 West Ham A goal is scored by Martin Paterson from close range to the bottom left corner of the goal. Burnley 2-0 West Ham.31:15
The official flags Carlton Cole offside. Lee Grant takes the indirect free kick.29:51
Handball decision goes against Matthew Taylor. Free kick crossed by Kieran Trippier.28:29
Unfair challenge on Jack Collison by Chris McCann results in a free kick. The free kick is swung in right-footed by Mark Noble.27:13
Ben Mee gives away a free kick for an unfair challenge on Gary O'Neil. Robert Green takes the free kick.26:26
Free kick awarded for an unfair challenge on Michael Duff by Kevin Nolan. Lee Grant takes the direct free kick.24:28
Assist by Martin Paterson.24:28 Goal scored
Goal! - Marvin Bartley - Burnley 1 - 0 West Ham Marvin Bartley fires in a goal from inside the box to the bottom left corner of the goal. Burnley 1-0 West Ham.21:34
Inswinging corner taken by Dean Marney from the left by-line.20:00
The referee blows for offside against Kevin Nolan. Michael Duff takes the indirect free kick.16:44
Martin Paterson concedes a free kick for a foul on Gary O'Neil. Free kick crossed by Mark Noble.13:46
The ball is swung over by Joey O'Brien, Effort on goal by Carlton Cole from deep inside the penalty area misses to the right of the target.12:59
Carlton Cole concedes a free kick for a foul on Ben Mee. Direct free kick taken by Ben Mee.11:09
Gary O'Neil produces a cross, David Edgar gets a block in. Matthew Taylor takes a inswinging corner from the right by-line played to the near post, clearance made by Danny Ings.9:10
Ben Mee produces a left-footed shot from just outside the box that goes wide left of the target.8:06
Close range effort by Carlton Cole goes wide of the left-hand upright.7:37
Carlton Cole concedes a free kick for a foul on Danny Ings. Lee Grant restarts play with the free kick.6:07
The ball is sent over by Joey O'Brien, Lee Grant makes a save.4:45
Martin Paterson has a headed effort at goal from deep inside the area missing to the left of the target.3:37
The referee blows for offside against Carlton Cole. Indirect free kick taken by Lee Grant.1:47
Free kick awarded for an unfair challenge on George McCartney by Ross Wallace. George McCartney takes the direct free kick.0:00
The game gets underway.
Live data and text provided by our data suppliers