Сделайте кнопку подсчета I JS
<button type="button" onClick="onClick()">Click me</button>
<p id="clicks"> Clicks: 0 </p>
Run code snippetHide results
Inquisitive Ibis
<button type="button" onClick="onClick()">Click me</button>
<p id="clicks"> Clicks: 0 </p>
Run code snippetHide results