I want to customize the alert title in my alert popups in iphone. Right now it is using the html page name in the title. Like AddDetail.html says: and so on. But, I don't want to display the name of my html pages to the users.
Asked
Active
Viewed 944 times
0
-
This is not possible, let me refer to http://stackoverflow.com/questions/1905289/how-to-edit-a-javascript-alert-box-title – MartinElvar Jan 29 '13 at 06:26
-
You must be adding the html page name as a title to your alert object while initialization. Just add your desired title there instead of the html page name. – Kanan Vora Jan 29 '13 at 06:27
-
No alert() method takes the name of the html page by which it is called. – Kaushik Ajmera Jan 29 '13 at 06:33
-
is this a native app? or a cross platform? Be more specific and clear with you question.. – Sharanya K M Jan 29 '13 at 06:49
-
This is a phonegap application and not a native application. – Kaushik Ajmera Jan 29 '13 at 06:54
1 Answers
0
If I understood right from the comments, this is a Phonegap / Cordova application.
Then you should check: http://docs.phonegap.com/en/2.3.0/cordova_notification_notification.md.html#notification.alert
syntax: navigator.notification.alert(message, alertCallback, [title], [buttonName])

Samuli Hakoniemi
- 18,740
- 1
- 61
- 74