Problem Statement: Need to have Alert and Confirmation Dialog box for Office 365 SharePoint with all devices ( Mobile, Tablet, Desktop) supported.
Microsoft has come up Office Fabric UI framework which works in all devices.
We need to include the Fabric UI css reference in our HTML and then we can use it.
CSS Ref URL https://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/Dialog/Dialog.css
code is hidden, please use View source and get the code
Function names are AlertDialog and ConfirmationDialog.
if any issue let me know