#What did Joshua plan to do with his men when they approached the city?

When Joshua approached the city with his men and the people of the city came out to attack, Joshua's men would run away like before. [8:4]