President Gen. Pervez Musharraf (search) recently faced two assassination attempts and launched a historic peace process with nuclear-armed rival India, but opposition lawmakers offered no praise Saturday during his first-ever speech to Parliament, heckling him as a military dictator and demanding he resign.

The noisy disruption highlighted deep-seated resentment at the military's persistent involvement in politics and blunted Musharraf's efforts to portray himself as a legitimate ruler since seizing power in a bloodless coup in 1999.

Opposition members chanted "go Musharraf, go Musharraf" and "friends of dictators are traitors" throughout his 40-minute, nationally televised speech. Musharraf supporters countered by thumping tables in applause, at times making it difficult to hear him.

Meanwhile, two domestic flights were diverted, preventing at least three opposition legislators from attending the speech. Officials gave conflicting reasons for the diversions.

Security was extremely tight at Parliament, with armored personnel carriers patrolling, after the two attempts on the president's life last month. The two bombings were blamed on Islamic militants who despise the president for allying Pakistan to the United States in the war on terror.

In his speech, Musharraf spoke of the needs to crush terrorism, to keep Pakistan's nuclear weapons secure and to prevent proliferation of atomic arms. He also urged a resolution of the long-standing conflict with India over the divided territory of Kashmir (search).

"A few people are committing the curse of extremism in our society ... who want to impose their narrow-minded ideas on others," Musharraf told the special joint session of both houses of Parliament.

The address capped a highly charged two weeks. Musharraf struck a deal with Indian Prime Minister Atal Bihari Vajpayee (search) to start talks on the Kashmir standoff; the military has stepped up operations in tribal borderlands to hunt down Al Qaeda (search) fugitives; and a car bombing injured 15 people outside a church in the southern city of Karachi.

Amid accusations that Pakistani nuclear technology has proliferated to Iran, Libya and North Korea, Musharraf promised to strengthen Pakistan's deterrent while stressing the need to "assure the world that we are a responsible nation and will not let nuclear weapons spread."

Musharraf, swapping his army uniform for a traditional white jacket, concluded his speech with a salute and punching his fists in the air.

The opposition appeared less upset by anything Musharraf said than his presence in the seat of Pakistan's embattled democracy.

Three weeks ago, the president hatched a deal with hard-line, pro-Taliban groups that led to votes of confidence in his rule in Parliament and the four regional assemblies. Under the deal, Musharraf will quit his post as army chief at the end of this year but finish out his five-year term as president in 2007.

"The democratic opposition demonstrated in full force, and strongly, that an intruder and a stranger had entered the Parliament building, that a serving general of the army cannot be an elected president at the same time," said opposition Sen. Farhatulalh Babar.

Babar also urged an investigation into what he claimed was a "hijacking by the regime" when two domestic Pakistan International Airlines (search) flights to Islamabad were diverted.

One of the planes, from the eastern city of Lahore, carried at least three opposition legislators who were prevented from attending the speech. The aircraft sat on the Islamabad airport's runway for 50 minutes without disembarking passengers, then flew to Peshawar.

A separate flight from the southern city of Karachi was forced to return without landing in Islamabad. There was no immediate indication that any opposition members were on board.

An airline official, Imran Gardezi, blamed the diversions on an airport bomb scare. But Information Minister Sheikh Rashid Ahmed cited "technical reasons," while an airport official, speaking on condition of anonymity, said one plane was diverted because of poor weather.

Tehmina Daulatana, a vocal opponent, alleged that the government wanted to prevent her from attending the speech and told The Associated Press: "What kind of general is he who is scared of a woman?"

The president remains deeply unpopular among partisans of former Prime Ministers Benazir Bhutto and Nawaz Sharif, both of whom are in exile. Musharraf overthrew Sharif's government in 1999 and dismissed Parliament.

In 2002, Musharraf complied with a Supreme Court order to hold elections -- but first made changes to the constitution to gain sweeping powers, including authority to dismiss Parliament and the prime minister.