Simple way to alert error messages in Javascript
Thank you Jacob Peattie for suggesting. It is very simple to use confirm() to replace alert() although confirm() has two options for users to select: OK and Cancel. When users click OK or Cancel button, I use function focus() to direct users where to correct that empty Content. Here are my working sample codes: if(content … Read more