Havlat snapped a 15-game goal drought, Joe Pavelski scored just his second goal in 19 games and added a late assist, and James Sheppard wrapped it up with his first goal of the season with 9:56 to play in San Jose's final stop on a five-game trip.
Emerson Etem scored his second career goal and Francois Beauchemin also scored for the Ducks, who wrapped up a string of five home games in eight days with their first three-game skid of the season.
Corey Perry scored for Anaheim with 1:40 to play, but Dan Boyle scored on an empty net with 28 seconds left.
It's a date that's been circled on my calendar, so it's kind of nice to have it here and get it over with (Thursday). This is a little bit of the closing of the book on the move. That's kind of how I'm looking at it.
— Stars forward Jason Spezza on returning to Ottawa for the first time to face the Senators