Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

408 CHAPTER 9 Asynchronous operations



  1. Add a
    element inside the messageBox
    element and set its id attribute to
    messageContent.

  2. Add a
    element inside the messageContent
    element and set its id to
    message.
    The element should look like the following.









  3. After the message
    element, add a
    element and then add a






  • In the default.css file, add a style rule for the cover element.
    This element will not be displayed by default. Its size should be the entire screen. Its
    Z-Index should be higher than anything on the page except the cover that is set in the
    next step. Its background color should be set to black. Your style should look like the
    following.
    #cover {
    display: none;

  • Free download pdf