In any case, it works that in if it doesn't matter what was entered in the prompt how to deal with it?
var user function login() { user = prompt("Введите свой ID"); alert(user); if ( user = "username") { alert("123") } } In any case, it works that in if it doesn't matter what was entered in the prompt how to deal with it?
var user function login() { user = prompt("Введите свой ID"); alert(user); if ( user = "username") { alert("123") } } It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
Source: https://ru.stackoverflow.com/questions/668700/
All Articles
user == "username"- br3t