JavaScript – Overwrite alert()

By | June 15, 2013

Here I’m using pnotify to replace default alert

The Code

window.alert = function(title,message) {
					title: title,
					text: message
alert('Say something','Wohoooooooooooo!'); // this should display alert in pnotify form.

Get Pines Notify Pines Notify

Leave a Reply

Your email address will not be published. Required fields are marked *

seventeen − ten =