Nasrul Hazim Bin Mohamad

JavaScript – Overwrite alert()

Jun
15

Here I’m using pnotify to replace default alert

The Code

window.alert = function(title,message) {
				$.pnotify({
					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 *

two × two =