Client Side/JAVA Script
자바스크립트 확인/취소 창 띄우기
Dev. Tool
2014. 12. 20. 15:00
버튼으로 창 띄우기
function delUrl() {
var Del = confirm("삭제 하시겠습니까?")
if (Del == true) {
alert("삭제 되었습니다.")
location.href="http://naver.com"
} else {
alert("취소 되었습니다.")
}
}
삭제
새창 및 페이지 자체에서 띄우기
Del = confirm("삭제 하시겠습니까?")
if (Del == true) {
alert("삭제 되었습니다.")
location.href="http://naver.com"
} else {
alert("취소 되었습니다.")
}