How to change the default heading of 'alert'

user1315906 picture user1315906 · May 7, 2012 · Viewed 11.6k times · Source

I am trying to use the alert method, so the native iOS like alertView will popout. Everything works fine, and the alert gets displayed. But the Heading of the Alert is always index.html.

How can i edit the heading of the alert method

Answer

Simon MacDonald picture Simon MacDonald · May 7, 2012

You'll want to use navigator.notification.alert() from the PhoneGap API instead. It will allow you to set a title on your alert box.