Search
 
SCRIPT & CODE EXAMPLE
 

HTML

button functions html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction">Click</button>
Comment

how to add function to button in html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction()">Click</button>
Comment

add a function to a button

if st.button('add'):
    result = add(1, 2)
    st.write('result: %s' % result)
Comment

PREVIOUS NEXT
Code Example
Html :: jquery ajax add loading 
Html :: html a href tooltip 
Html :: meta property="og:description" 
Html :: bootstrap class width auto 
Html :: how to write code in html 
Html :: nested select option in html 
Html :: html paragraph 
Html :: collapse bootstrap 4 
Html :: slider video play 
Html :: how to align input boxes in html 
Html :: ios viewport cover 
Html :: bootsrap main section fill all height with navbar 
Html :: html accordion generator 
Html :: html element hover help text 
Html :: html5 datalist 
Html :: sup html 
Html :: html css how to position elements on right of div 
Html :: country code dropdown with flag bootstrapp 
Html :: google colab to html 
Html :: submit button out of from 
Html :: p tag in html 
Html :: show/hide password html 
Html :: links in html 
Html :: html marquee tag 
Html :: html tooltip attribute 
Html :: creating a table in html 
Html :: href tag in html 
Html :: pop up animation css 
Html :: vue-date-pick 
Html :: react render html 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =