Basic Alert

<script type="text/javascript">


  1. User Avatar

    This is very nice as a designer i have to find some where else and not get proper way for alert


  2. User Avatar

    Will this alert on by clicking or on page load ?

  3. User Avatar
    Permalink to comment#

    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 !

    • User Avatar
      Permalink to comment#

      Julia, yes you can. You just edit the “ALERT!” to whatever you want it to be.

  4. User Avatar
    Permalink to comment#

    it is very easy please upload more examples so i can clear the concept

  5. User Avatar
    Permalink to comment#

    Here’s a simple non-modal replacement for the alert:

  6. User Avatar
    Permalink to comment#

    Here’s a simple non-modal replacement for the alert function:

  7. User Avatar
    Permalink to comment#

    Most basic thing ever…most front end developers use a custom light box or modal box

Leave a Comment

Posting Code!

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.

Code of Conduct

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.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.