• This project
    • Loading...
  • Sign in

성준영 / webservice-practices

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • webservice-practices
  • quiz_4
  • 2012104095.html
  • 성준영's avatar
    생년월일 입력 · 176df522
    176df522 Browse Files
    성준영 authored 2017-04-27 11:16:50 +0900
2012104095.html 457 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<button onclick="checkButtonClick()">CHECK</button>

<script>
    function checkButtonClick() {
        var filename = prompt('파일 명을 입력하세요');
        if(/\.html/g.test(filename)){
            document.write(filename);
        } else {
            alert('HTML 파일명을 입력하시오')
        }
    }
</script>
</body>
</html>