Code Snippets → JavaScript → Basic Alert Basic Alert Chris Coyier on Sep 11, 2009 <script type="text/javascript"> alert('ALERT!') </script>
This is very nice as a designer i have to find some where else and not get proper way for alert
thanks
Will this alert on by clicking or on page load ?
yes, on default it will alert on DOM load/ready
Wonderful, I was looking everywhere on the internet since hours to know how to do such a thing, now I’m gunna do that on all my website page !!
But I still have a question though, is it possible to change the message ALERT! into something else, like HELLO! or something ?
Thanks for your help !
Julia, yes you can. You just edit the “ALERT!” to whatever you want it to be.
it is very easy please upload more examples so i can clear the concept
Here’s a simple non-modal replacement for the alert:
http://codepen.io/anon/pen/PqEdQa
Here’s a simple non-modal replacement for the alert function:
http://codepen.io/oriadam/pen/doJqmR
Most basic thing ever…most front end developers use a custom light box or modal box