GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing ko.javascript.info — 간단한 페이지 만들기

  • 튜토리얼
  • 코어 자바스크립트
  • 자바스크립트 기본
  • alert, prompt, confirm을 이용한 상호작용
돌아가기

간단한 페이지 만들기

중요도: 4

사용자에게 이름을 물어보고, 입력받은 이름을 그대로 출력해주는 페이지를 만들어 보세요.

데모 실행하기

자바스크립트 코드:

let name = prompt("이름을 입력해 주세요.", "");
alert(name);

전체 페이지:

<!DOCTYPE html>
<html>
<body>

  <script>
    'use strict';

    let name = prompt("이름을 입력해 주세요.", "");
    alert(name);
  </script>

</body>
</html>
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.