Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

button click event html

HTML File:
<button id="this_is_a_button" name="this_is_a_button" onclick="when_the_button_clicked_func()">Button's text goes here</button>

JS File
function when_the_button_clicked_func(){
	// The events goes here
    alert("Wow! You clicked the button!"); // for example
}
 
PREVIOUS NEXT
Tagged: #button #click #event #html
ADD COMMENT
Topic
Name
6+9 =