Skip to main content

Command Palette

Search for a command to run...

Javascript

Published
1 min readView as Markdown

The basics of Javascript

From the HTML code we wrote from the previous activity.

  • Add <script> </script> under </style>
    </style>
    <script>

    </script>
</head>
  • Add function()
    </style>
    <script>
        function hey(){
            alert('Hi!');
        }
    </script>
</head>
  • Add '영화 기록하기`
    <div class="mytitle">
        <h1>내 생애 최고의 영화들</h1>
        <button onclick="hey()">영화 기록하기</button>
    </div>
  • Now, when the button is clicked, the message above pops up.

image.png

More from this blog

Ollie Seongyong Kim

85 posts

under \n\n \n \n\n\nAdd function()\n\n \n