Lordeagle
admin_teGa Just as Graham has said u cant output html using window alert only the source code will be displayed so use the suggested method above, you can also use
<span style="background:inherit;color:#f00" id="abc"></span> u duplicate itc an use it with the two input field and change their id . Using a function can help as well
function info(msg,id){document.getElementById(id).innerHTML=msg;} u can add it in the if statement thus info("wrong password","password");weong password is the message and id is the targeted id.