Saving the User Name

2. 유저명 저장하기 : 입력된 유저명을 저장하여 화면에 출력

<!DOCTYPE html>
<html>
<head>
    <title>Something</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <div class="js-clock">
        <div class="js-title">
            <h1>00:00</h1>
        </div>
    </div>
    <form class="js-form form">
        <input type="text" placeholder="What is your name?" />
    </form>
    <h4 class="js-greetings greetings"></h4>
    <script src="clock.js"></script>
    <script src="greeting.js"></script>
</body>
</html>

LocalStorage : 작은 자바스크립트 정보들로서, 유저 브라우저에 저장됨

작업관리자 - Application - Local Storage

Null : 존재하지 않음을 의미 = undefined, cannot find

function(event){}

  • paintGreetingtext를 필요로 함

  • submit : 제출

Last updated

Was this helpful?