Skip to content

Instantly share code, notes, and snippets.

@NachoMan NachoMan/alert-1.js
Created Oct 16, 2009

Embed
What would you like to do?
navigator.notification.alert(
"There was an error connecting to the Internet. Would you like to retry?.",
"No Internet connection",
"No",
"Yes",
{
onClose: function(buttonIndex) {
if (buttonIndex == 1)
retryConnection();
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.