Chris Pronger also scored twice and Dustin Penner added a goal for the Ducks, who beat Phoenix for the fifth time in six games this season and snapped a three-game skid overall. Mathias Tjarnqvist, Keith Ballard, Owen Nolan and Oleg Saprykin scored for Phoenix, which has lost three straight.
Selanne beat Curtis Joseph with a shot from the left edge of the crease into the top right side of the net for his 526th career goal.
Pronger started the Ducks' rally from a 4-1 deficit with a power-play goal with 4.4 seconds left in the second period, beating Joseph on a blast from top of the left faceoff circle.
Penner made it 4-3 at 5:11 of the third off a rebound before Pronger tied the game on a disputed goal from the top of the left circle.
Television replays showed the Ducks had used a hand pass to move the puck from the crease to Ryan Getzlaf on the wing before he moved the puck to Pronger, but the play was not reviewable.
Three of Phoenix's four goals and a near miss by Anaheim had been reviewed earlier in the game.
Ballard had given Phoenix a 2-1 lead with 41.8 seconds left in the period when he took a backhand pass from Shane Doan and guided the puck into the net as he was tripped from behind by Anaheim's Francois Beauchemin.
Tjarnqvist, acquired from Dallas on Monday along with a first-round pick for Ladislav Nagy, extended the lead to 3-1 at 2:48 of the second period when he beat Jean-Sebastien Giguere on a popped up rebound in the crease. Saprykin made it 4-1 at 6:58 while laying prone in the crease, redirecting Travis Roche's shot from the right goal line past Giguere.
Anaheim opened a 1-0 lead 3:33 into the game when Selanne scored on a rebound into the open left side of the net. Phoenix tied the game at 12:33 when Nolan redirected Tjarnqvist's quick wrist shot from the top of the right circle off the left post and into the net at 12:33.
Notes: Selanne, who also had an assist, moved past New York Islanders great Bryan Trottier into sole possession of 27th place on the career goals list. ... Tjarnqvist's goal was his first since January 4. ... Three of The Coyotes' offensive ranks have been thinned so severely after the Nagy trade that Ballard, a defenceman, was positioned in front of the crease as a power forward on the Phoenix power play. ... Ballard's goal was his second goal in three games.