Mobile Web App Java Script alert
===

I am working on a mobile web app using javascript

I am wondering what is the best way to notify my users of an error

For example, upon entering a wrong password, I want to notify them that the password is incorrect.

I tried using:

    alert('You entered a wrong password');

but on the mobile phone, when running the app it does not work to well

Any suggestions on how to notify and alert my users upon using the app?

Thank you!