Tagjavascript

Website Alert Toast with JavaScript/jQuery

There’s a really simple method to show toasts in Android and other mobile apps but you can do the same for your website beautifully. From below codes you can either go with JavaScript or jQuery, as convenient. JavaScript function toast(msg,status){ var body = document.body, snack = document.createElement('div'); snack.innerHTML = '<div id="snackbar" class="snackbar bobx...