+ 9
Module 7
Fill in the blanks to alert a message when the button is clicked. <button ="msg()">Click me</button> <script> msg() { alert("Hi!"); } </script>
14 Answers
+ 13
onclick
function
+ 2
onclick
function
+ 1
onclick
function
0
onclick
function
0
Onclick
Function
0
<button
onclick
="msg()">Click me</button>
<script>
function
msg() {
alert("Hi!");
}
</script>
0
module
0
<button
onclick
="msg()">Click me</button>
<script>
function
msg() {
alert("Hi!");
}
</script>
0
<button
onclick
="msg()">Click me</button>
<script>
function
msg() {
alert("Hi!");
}
</script>
0
Onclick
Function
0
Fill in the blanks to alert a message when the button is clicked.
<button
onclick
="msg()">Click me</button>
<script>
function
msg() {
alert("Hi!");
}
</script>
0
Fill in the blanks to alert a message when the button is clicked.
<button
="msg()">Click me</button>
<script>
msg() {
alert("Hi!");
}
</script>
0
Fill in the blanks to alert a message when the button is clicked.
<button onclick="msg()">Click me</button>
<script>
function msg() {
alert("Hi!");
}
</script>
0
onclick
function