유돌이

calendar

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 30 31

Notice

2008. 12. 20. 22:10 PHP/Java Script/html

[설명]

(Yes, No) 결정을 나타날 수 있도록 하는 함수!!

 

[사용방법]

    - winodw.confirm("문자열 메시지")

 

[리턴]

참(True), 거짓(Flase)을 리턴한다.

 

[예제]

<html>
<head>
    <title>confirm Method</title>
    <script type="text/javascript">
    <!--
    function withDraw(){
    var bAnswer = confirm("정말 탈퇴 하시렵니까?            ")
    if (bAnswer == true)
    alert("탈퇴 처리되었습니다.          ")
    location.href = "http://blog.naver.com/cysnim12"
    }
    // -->
    </script>
</head>
<body><br /><br /><br />
   <p align="center"> <button onclick="withDraw()">탈퇴</button></p>
</body>
</html>


'PHP/Java Script/html' 카테고리의 다른 글

charset 및 encoding의 의미  (0) 2009.03.21
세션과 쿠기  (0) 2008.12.20
strtotime 함수(php)  (0) 2008.12.20
[data type의 char와 varchar의 차이점!]  (0) 2008.12.20
php 함수(explode, trim, substr)  (0) 2008.12.20
posted by 유돌이