Showing
2 changed files
with
14 additions
and
2 deletions
practice_14/index.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="en"> | ||
| 3 | +<head> | ||
| 4 | + <meta charset="UTF-8"> | ||
| 5 | + <title>Title</title> | ||
| 6 | +</head> | ||
| 7 | +<body> | ||
| 8 | + | ||
| 9 | +<script> | ||
| 10 | + var birth = prompt('생년월일 입력'); | ||
| 11 | + document.write(birth.substr(0,4) + "년 " + birth.substr(4,2) + "월 " + birth.substr(6) + "일"); | ||
| 12 | +</script> | ||
| 13 | +</body> | ||
| 14 | +</html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -9,8 +9,6 @@ | ... | @@ -9,8 +9,6 @@ |
| 9 | <button onclick="checkButtonClick()">CHECK</button> | 9 | <button onclick="checkButtonClick()">CHECK</button> |
| 10 | 10 | ||
| 11 | <script> | 11 | <script> |
| 12 | - | ||
| 13 | - | ||
| 14 | function checkButtonClick() { | 12 | function checkButtonClick() { |
| 15 | var filename = prompt('파일 명을 입력하세요'); | 13 | var filename = prompt('파일 명을 입력하세요'); |
| 16 | if(/\.html/g.test(filename)){ | 14 | if(/\.html/g.test(filename)){ | ... | ... |
-
Please register or login to post a comment