ss="qm-docs-topic-body"><div class="qm-html-paragraph">Alerts and messages are essentially the same, with messages being a sub-type of alerts. The key difference between messages and alerts is that messages will auto-dismiss themselves after a set duration and do not show a close button, while alert will persist on screen until the close button is clicked. Both  <code class="qm-code-highlight-code qm-code-font">message</code>  and  <code class="qm-code-highlight-code qm-code-font">alert</code>  return an  <