Grow your CSS skills. Land your dream job.

Last updated on:

Basic Alert

<script type="text/javascript">


  1. Dhaval

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


  2. Will this alert on by clicking or on page load ?

  3. 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 !

    • Elijah
      Permalink to comment#

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

  4. Reem
    Permalink to comment#

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

Leave a Comment

Posting Code

  • Use Markdown, and it will escape the code for you, like `<div class="cool">`.
  • Use triple-backticks for blocks of code.
      <h1>multi-line block of code</h1>
      <span>be cool yo.</span>
  • Otherwise, escape your code, like <code>&lt;div class="cool"&gt;</code>. Markdown is just easier though.

Current ye@r *

*May or may not contain any actual "CSS" or "Tricks".