British Prime Minister Tony Blair (search) underwent a successful operation Friday to correct an irregular heartbeat and was recovering at home, a hospital official said.

Simon Wilde, a spokesman for Hammersmith Hospital in west London, also said Blair would have a "rapid and complete recovery" and there was a low risk the problem would recur.

"The procedure was successful in eliminating the atrial flutter," Wilde said.

Medical experts said the 2 1/2-hour operation, carried out under local anesthetic, was a safe, routine procedure. Aides have stressed that Blair will be back at his desk Monday and intends to go ahead with a planned trip to Africa on Tuesday.

"I think today our thoughts are with Mr. Blair, with his family and with the recovery that everybody hopes that he has from this operation," Treasury chief Gordon Brown told the British Broadcasting Corp. from Washington, where he is attending the annual meeting of the International Monetary Fund (search).

Blair, 51, looked relaxed as he was driven away from his Downing Street residence, accompanied by his wife, Cherie, in an official car at about 7:05 a.m. Friday. He told reporters he felt fine.

"It's a sort of fluttering. It doesn't stop you working, and indeed I've been working the last couple of months since it happened," Blair said Thursday night, just hours after appearing onstage for the closing ceremony of his Labour Party's annual convention. "I'm going to go in and have this routine operation."

Deputy Prime Minister John Prescott stood in for Blair while he underwent the operation.

Prescott stressed that Blair, who announced Thursday he intends to serve another five years, is still up to the job and could serve a third term if his party wins national elections expected next year.

"We have known about this condition for some period of time and he has been operating through probably one of his most difficult periods in politics, always bouncing back, dealing with these problems," Prescott said. "This is an extraordinary man who has got the energies to deal with it. That hasn't changed whatsoever."

Blair's condition is called supraventricular tachycardia (search). It is caused by rapid electrical activity in the upper parts of the heart and results in a sometimes irregular, rapid heartbeat.

The procedure involves inserting a catheter through the groin and up to the heart, where radio-frequency energy is used to kill off the cells conducting the extra impulses.

The British Heart Foundation (search) said the condition, which may be accompanied by shortness of breath, dizziness or fainting, can be distressing for the patient but is not considered serious.

"Many people experience them at some time, even if they have no evidence of heart disease," spokeswoman Cathy Ross said.

President Bush, Blair's close friend and ally, sent his best wishes.

"The president's thoughts and prayers are with prime minister. He wishes him a speedy recovery," White House spokeswoman Claire Buchan said.

Afghan President Hamid Karzai said he prayed for Blair's "quick and full recovery, so that you can continue your brave efforts toward making the world a better place for all of us."

Blair has had his toughest two years as prime minister, facing intense opposition — even from his own party — to his support for the U.S.-led war in Iraq. The war overshadowed this week's convention, and Blair is battling to unite his party as it aims to seek a third term in power.

His announcement Thursday that he would serve a full third term followed months of speculation that he intended to step down midway through it and pass the baton to Brown.

"If I'm elected I would serve a third term," Blair said. "I do not want to serve a fourth term, I don't think the British people want a prime minister to go on that long but I think it's sensible to make plain my intention now."

He took office in 1997, and his Labour Party also won elections in 2001.

Blair's office said the prime minister will spend Friday night in the hospital and rest over the weekend before returning to "normal duties" Monday.

Blair said his doctor assured him the heart condition was not connected to anything more serious.

"I feel fine. I feel great. What happens every so often is that you get a flutter. ... Apparently there is a procedure that is very easy to do and fixes it," he said.

Blair's condition first came to public attention a year ago when he was treated at a London hospital for a rapid, irregular heartbeat. An electric jolt was used to return his heart rhythm to normal.

On that occasion, he returned to work a day later, defying doctors' orders to take 24 hours of rest.

A month later, in November 2003, his aides were quick to play down another health scare when Blair called doctors to his official residence. His office said he was suffering from a stomach ache that passed quickly with no treatment given by the two doctors examining him.

Blair's procedure comes less than a month after his 58-year-old former colleague in the White House, Bill Clinton, underwent quadruple bypass surgery in New York.

Blair has seen his popularity slump since the Iraq war and the U.S.-led coalition's failure to find evidence supporting his prewar contention that Saddam Hussein possessed stockpiles of weapons of mass destruction.

During a speech to his party's conference Tuesday, Blair acknowledged British intelligence on the weapons threat posed by Iraq was wrong, but he pointedly refused to apologize for toppling Saddam, insisting the world was safer with him in prison.

But the usually bullish and defiant prime minister was contrite.

"I'm like any other human being, as fallible and as capable of being wrong," he said, insisting that he went to war to protect Britain's security.

A spokeswoman for the prime minister also confirmed Friday that the Blairs had bought a house in London's exclusive Connaught Square, paying $6.5 million for the property. They purchased it "for their future," and none of the Blair family planned to move in immediately, she said.