Hamas is urging Palestinians to abandon peace efforts and launch an uprising against Israel in response to US President Donald Trump’s recognition of Jerusalem as its capital.

Dozens of Palestinians have been injured, at least one critically, in a wave of violent protests in the West Bank and Gaza after local factions called for a “Day of Rage” in response to Mr Trump’s decision.

The Israeli military said on Friday morning (AEST) that two rockets had been fired towards Israel from the Hamas-ruled Gaza Strip, but did not cross into Israeli territory.

The Australian Department of Foreign Affairs and Trade issued a warning to Australian travellers on Friday morning to be alert of the widespread protests.

Foreign Minister Julie Bishop confirmed on Thursday that Australia would be leaving its embassy in Tel Aviv.

Updated advice on DFAT’s Smart Traveller website said Australian officials were limiting non-essential travel in Gaza and the West Bank.

“Large protests are likely, particularly after Friday prayers, and could result in violence. Avoid demonstrations and monitor the media about possible unrest,” it read.

Hamas leader calls for ‘day of rage’

Hamas leader Ismail Haniyeh said in a speech in Gaza that the US support for Israel “could only be confronted by a renewed intifada against the occupation”.

He called the US-Israeli alliance “satanic”.

“We should call for and we should work on launching an intifada (Palestinian uprising) in the face of the Zionist enemy,” Mr Haniyeh said.

“Palestine will not be divided and the whole of Palestine and the whole of Jerusalem are the property of the Palestinian people.

“It is a declaration of war against our Palestinian people in their holiest of holy places of the Christians and Muslims.”

Mr Haniyeh, elected the group’s overall leader in May, urged all Muslims to hold further rallies against the US decision.

Naser Al-Qidwa, an aide to Palestinian President Mahmoud Abbas and senior official in his Fatah party, urged Palestinians to stage protests but said they should be peaceful.

Israel considers Jerusalem its eternal and indivisible capital. Palestinians want the capital of an independent state of theirs to be in the city’s eastern sector, which Israel captured in the 1967 Middle East war and annexed in a move never recognised internationally.