Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to put more than one javascript function in an html tag

Use a semi-colon to separate your functions inside the tag.
Example:

<button onclick="functionOne();functionTwo();">Click Me!</button>

You can also separate them using a comma(,)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #put #javascript #function #html #tag
ADD COMMENT
Topic
Name
8+5 =