Nasrul Hazim Bin Mohamad

JavaScript – Overwrite alert()


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 *

five × 4 =