java script
간단한 확인창 열기
디자인인스
2011. 1. 7. 11:48
// HEAD 부분에 아래의 내용을 복사해 넣으세요
<script>
if (!confirm("정말 제 홈페이지를 보고 싶으세요?"))
window.location=history.go(-1)
// window.location=history.go(-1) 코드는 취소를 누르면 이전 페이지로 간다는 말입니다
// 만약 특정 페이지로 가게 하려면 window.location='주소' 를 사용하세요
</script><!---->
<script>
if (!confirm("정말 제 홈페이지를 보고 싶으세요?"))
window.location=history.go(-1)
// window.location=history.go(-1) 코드는 취소를 누르면 이전 페이지로 간다는 말입니다
// 만약 특정 페이지로 가게 하려면 window.location='주소' 를 사용하세요
</script><!---->