자바스크립트의 confirm 메소드를 이용한다.
<html>
<head>
<s-ript language="javas-ript">
function confirm1()
{
var aaa = window.confirm('확인창 제목');
if(aaa)
{
alert("확인을 눌렀습니다 !");
}
else
{
alert("취소를 눌렀습니다 !");
}
}
</script>
</head>
<body>
<input type="button" value="test" onclick="javas-ript:confirm1()">
</body>
</html>
<html>
<head>
<s-ript language="javas-ript">
function confirm1()
{
var aaa = window.confirm('확인창 제목');
if(aaa)
{
alert("확인을 눌렀습니다 !");
}
else
{
alert("취소를 눌렀습니다 !");
}
}
</script>
</head>
<body>
<input type="button" value="test" onclick="javas-ript:confirm1()">
</body>
</html>
공유하기 버튼
|
|





























덧글