How to create a messagebox in javascript

hi , I am trying to prompt a message box which recieves the input userid and password and I need to validate the input .Can any one let me know how to do it.Thanks.
[199 byte] By [kaiths] at [2007-9-26 2:11:53]
# 1
hi,try this:var userid=prompt("Please enter your username!");var passw=prompt("Please enter your password!");//evaluation follows herebest regards, Michael
Michael_Rudolf at 2007-6-29 9:04:29 > top of Java-index,Core,Core APIs...