JQuery - Using navigator.notification.alert
问题 I have a requirement for a popup to appear with a custom heading (having it appear from index.html on an app just looks tacky). I tried the suggestion at the end of the following link: Custom JavaScript alerts in iOS using PhoneGap HTML So I added the code below to my index.html in the script section: function showMessage(message, callback, title, buttonName){ title = title || "default title"; buttonName = buttonName || 'OK'; if(navigator.notification && navigator.notification.alert){