CLEVELAND — Brandon Weeden lost his starting job, but never any confidence.
He promised that if he ever got the chance to start for the Browns again he would make the most of it.
And on Thursday night, in front of a home crowd that booed some of his early throws and a national TV audience, Weeden came to Cleveland’s rescue.
Weeden replaced injured starter Brian Hoyer and rallied the Browns to a 37-24 win over the Buffalo Bills, who also lost starting rookie quarterback EJ Manuel with a knee injury.
‘‘You can only control what you can control,’’ Weeden said. ‘‘I’m just sticking my neck on the line for this football team. I prepared like I was starting, but it was tough with zero reps the last two weeks. I was a little rusty to start.’’
Weeden threw a 37-yard TD pass to Josh Gordon in the third quarter as the Browns (3-2) won their third straight and temporarily moved into sole possession of first place in the AFC North. It’s the Browns best record after five games since they were 3-2 in 2001.
‘‘We don’t care about history,’’ Gordon said. ‘‘This is a new year and this is a new team.’’
Safety T.J. Ward intercepted rookie Jeff Tuel’s pass and returned it 44 yards for a TD with 1:44 left to end any comeback hopes for the Bills (2-3).
‘‘We’re a hungry football team,’’ Weeden said. ‘‘It took all three phases.’’
Hoyer sustained a potentially serious right knee injury on a scramble in the first quarter, and Manuel was forced out after taking a helmet to his right knee on a run in the third. Neither returned.
C.J. Spiller had a 54-yard TD run and Fred Jackson had a pair of 1-yard TD runs for the Bills, who could do nothing once Manuel left the game.
Billy Cundiff kicked field goals of 24 and 44 yards in the fourth for the Browns, who overcame a 10-0 deficit and were down, 24-17, less than two minutes into the second.
Cundiff’s second kick with 2:19 left put the Browns ahead, 30-24, and Cleveland turned it over to its third-ranked defense.
With the Bills still within a TD, Tuel locked in on Robert Woods and never saw Ward, who cut in front of the receiver and scored untouched, allowing Cleveland fans to relax following a hectic second half.
Travis Benjamin had an electrifying 79-yard TD punt return in the first half for Cleveland. Benjamin set a team record with 179 return yards, breaking the mark held by Eric Metcalf.
Beyond the quarterbacks, both teams had one other key player go down with an injury.
Bills leading receiver Stevie Johnson injured his back in the first half and didn’t return. Johnson caught two catches for 19 yards before he went out.
Browns defensive end Desmond Bryant was taken to the Cleveland Clinic in the third quarter after experiencing shortness of breath. Last year with Oakland, Bryant had to be hospitalized during a game with an irregular heartbeat, but returned to play the next week.
Weeden started slowly but finished 13 of 24 for 197 yards, and was sacked five times.
Weeden missed Cleveland’s past two games, and although he had been cleared to play this week, Browns coach Rob Chudzinski chose to stay with Hoyer, who had beaten Minnesota and Cincinnati the past two weeks, throwing clinching TDs late in both wins.
With the Browns trailing, 7-0, Hoyer took off on an 11-yard run and was sliding after picking up the first down when he was hit from the side by rookie linebacker Kiko Alonso.
Both of Hoyer’s knees were bent awkwardly on the hit . He stayed on the ground for several moments before he was assisted to a trainer’s table. After he was examined, Hoyer limped unassisted to the locker room for tests and treatment.
Chudzinski said Hoyer had a sprained knee and would have an MRI on Friday.