# Buttons

**URL:** <https://forum.wixstudio.com/t/buttons/39190>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [July 1, 2022, 4:06pm UTC](https://forum.wixstudio.com/t/buttons/39190 "2022-07-01T16:06:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracoking1300](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dracoking1300/32/33934_2.png) [@dracoking1300](https://forum.wixstudio.com/u/dracoking1300)\
**Post date:** [July 1, 2022, 4:06pm UTC](https://forum.wixstudio.com/t/buttons/39190/1 "2022-07-01T16:06:15Z")

</div>

On wix I want to make it so every time someone pushes a button, everyone on the site can see how many times it was pushed. Here’s what I got so far

**import** { local , session , memory } **from** ‘wix-storage’ ;

$w . onReady ( **function** () {

```
**let** clicks = local . getItem ( "clicks" ); 
$w ( "#text15" ). text = "Amount of Times Clicked: " + clicks 
**let** c = Number ( clicks ); 

$w ( "#button6" ). onClick ( ( event ) => { 
    c ++; 
    local . setItem ( "clicks" , c ) 
    $w ( "#text15" ). text = "Amount of Times Clicked: " + c ; 
    

}) 

```

});
