Fork me on GitHub

Alert

<div id="myAlert"></div>
YUI().use(
  'aui-alert',
  function(Y) {
    new Y.Alert(
      {
        animated: true,
        bodyContent: 'Thank You Mario! But Our Princess Is In That Castle!',
        boundingBox: '#myAlert',
        closeable: true,
        cssClass: 'alert-warning',
        destroyOnHide: false,
        duration: 1,
        render: true
      }
    );
  }
);