티스토리 뷰
대화창을 이용하는 예제(example)
<!DOCTYPE html>
<html>
<head>
<title>
Dialog Test - 01
</title>
</head>
<body>
Dialog Test - 01
<?php
echo "<dialog id='pigdialog'>";
echo "<h2>돼지 저금통</h2>";
echo "<label for='money'>지갑에 동전을 얼마 넣을까요?</label>";
echo "<div><input name='amount' id='money' type='number' min='0' step='100' value='100'></div>";
echo "<div><input name='round' type='checkbox'>1,000원 단위로 넣기</div>";
echo "<button type='submit' value='saving'>동전 넣기</button>";
echo "</dialog>";
echo "<button id='opendialog'> Open </button>";
?>
<script>
var dialog = document.getElementById('pigdialog');
document.getElementById('opendialog').onclick = function(){
alert("opendialog");
dialog.show();
}
</script>
</body>
</html>
반응형
'SWDesk > Web' 카테고리의 다른 글
PHP JSON Example (0) | 2020.09.28 |
---|---|
Python XML Example (0) | 2020.09.27 |
[BDS] Web Page for Manager - On Clicking 'DUT' (0) | 2020.08.23 |
Webpage sample, form & input (0) | 2020.08.23 |
[BDS] Web page for Admin (0) | 2020.08.19 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- bilient
- arduino
- ServantClock
- 아두이노
- 전압
- 티스토리챌린지
- Decorator
- 치매
- 오블완
- image
- 전류
- 치매방지
- 배프
- 허들
- 빌리언트
- BSC
- 전압전류모니터링
- 절연형
- Innovation&Hurdles
- 혁신과허들
- 심심풀이치매방지기
- 혁신
- Video
- badp
- Hurdles
- DYOV
- 둎
- Innovations
- Innovations&Hurdles
- 심심풀이
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함