-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.js
More file actions
29 lines (25 loc) · 887 Bytes
/
common.js
File metadata and controls
29 lines (25 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function goToBack() {
history.back();
}
function chkJoin() {
var txtIdElem = document.getElementById('txtId');
var txtPwElem = document.getElementById('txtPw');
var txtRePwElem = document.getElementById('txtRePw');
if(txtIdElem.value === '' || txtPwElem.value === '') {
alert('로그인을 할 수 없습니다.');
} else if(txtPwElem.value !== txtRePwElem.value) {
alert('비밀번호를 확인해 주세요.');
} else {
location.href = 'login.html';
}
}
function chkLogin() {
//console.log('id값: ' + txtId.value);
var txtIdElem = document.getElementById('txtId');
var txtPwElem = document.getElementById('txtPw');
if(txtIdElem.value === '' || txtPwElem.value === '') {
alert('로그인을 할 수 없습니다.')
} else {
location.href = 'main.html';
}
}