Hi,
I came across this code for adding an alert from this link, http://stackoverflow.com/questions/94...
I cant get this to work, I running the code on click
can you see anything wrong, I need to have alerts without the pagename on the alert title
thx
codefunction showMessage(message, callback, title, buttonName){
Code: Select all
title = title || "default title"
buttonName = buttonName || 'OK';
if(navigator.notification && navigator.notification.alert){
navigator.notification.alert(
message, // message
callback, // callback
title, // title
buttonName // buttonName
);
}else{
alert(message);
callback();
} }/code