+ 1
Do anyone know how to make this code execute only on clicking a button?
2 ответов
+ 1
First of all you need to remove the script tag from the js section.
+ 1
Then you need to create a button in the html part:
"<button onclick='//The name of the function()'>Something</button>