Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 163 - Difference between MESSAGE and ERROR  (Read 3886 times)
Reuben B.
Four Js
Posts: 1071


« on: February 17, 2023, 04:32:10 am »

A common misunderstanding is that apart from something to indicate severity, is that MESSAGE and ERROR have the same properties.
 
They differ in when they disappear having displayed their text to the user.
 
An ERROR will disappear at the next user interaction.
 
A MESSAGE will remain for longer and disappear when the window is closed or is overridden with the next MESSAGE.  For that reason you may see MESSAGE "" in your code to make the message disappear.

Read more at https://4js.com/ask-reuben/ig-163/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines