Day 5
Working on event handlers with Stefan...
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
<head>
<meta charset="UTF-8">
<title>JavaScript Events</title>
<!--
Some common event handlers:
- onclick
- onmouseover
- onmouseout
- onload
- onkeypress
- onchange - for form fields
-->
<script>
function sniffer(message) {
console.log("Something happened: " + message);
}
</script>
<style>
#secondP {width: 200px; background-color: #AFE6A5;}
p:hover, button:hover {cursor: pointer;}
</style>
</head>
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
<head>
<meta charset="UTF-8">
<title>JavaScript Events</title>
<!--
Some common event handlers:
- onclick
- onmouseover
- onmouseout
- onload
- onkeypress
- onchange - for form fields
-->
<script>
function sniffer(message) {
console.log("Something happened: " + message);
}
</script>
<style>
#secondP {width: 200px; background-color: #AFE6A5;}
p:hover, button:hover {cursor: pointer;}
</style>
</head>
Comments
Post a Comment