Javascript
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.
