IceFox
by SwampFall
HTML
<input id='input'\><br>
<button id='button'>punch me</button>
<div id='output'>
</div>
ah we are doing a website with html in computing @ school
oop i gtg now ^^
See you bb bye
yea cu later
ok bb^^
CSS
oki so what we have now:
in HTML -> stuff you see on the page
in JavaScript -> logic of the page
we select the 3 elements, input, button and output and put those in the variables with the names
button input and output
ohh oki xD I'll save this so we can continue from here :3 bb ^^ bb
JavaScript
let button = document.getElementById('button');
let input = document.getElementById('input');
let output = document.getElementById('output');
button.addEventListener('click', click);
function click(e) {
alert('test');
}