How to execute javascript functions in client-side in browsers with Node-JS? : <p>I'm trying to execute javascript code in <strong>client-side</strong> using node-JS, precisely I want to execute an <strong>alert</strong> when the user or the password is wrong to log to the website. Executing javascript in client code could even animate my website. How do I do that? </p>

<p>I tried to use npm alert-node, also npm js-alert, and npm popups, but those modules didn't work (no one mentioned). Really I think that those modules are not necessary if I just want to create an alert with a message "Error to log, try again". </p>

<p>If possible, can you give me a tutorial that explain <strong>how to execute javascript in client-side in node js?</strong> I use <strong>express</strong> with <strong>EJS</strong> and <strong>bootstrap</strong>. thanks. </p>
