Last Updated On
September 11, 2009
This is very nice as a designer i have to find some where else and not get proper way for alert
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:
Here’s a simple non-modal replacement for the alert function:
Most basic thing ever…most front end developers use a custom light box or modal box
Copy and paste this code: micuno *
Leave this field empty
Get the CSS-Tricks newsletter
You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.
Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.
Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.