function pass(checkform){ var word = checkform.secret.value; if (word == "cata")//これがパスワードになります { location.href = "search-adm.htm" }//ここに飛ぶようになっています else { location.href = "search.htm" }//間違ったパスワードを入れると元に戻る }