# How to make a bottom for customers to copy link to the page?

**URL:** <https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223>\
**Category:** Ask the community\
**Created:** [December 26, 2022, 4:27pm UTC](https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223 "2022-12-26T16:27:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/siv/32/35976_2.png) [@siv](https://forum.wixstudio.com/u/siv)\
**Post date:** [December 26, 2022, 4:27pm UTC](https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223/1 "2022-12-26T16:27:40Z")

</div>

Hi there!  
Does anyone know by any chance how to make customers able to copy a link to the page they are in?

 ![](https://us1.discourse-cdn.com/wix/original/3X/7/b/7be4ad9e9cdd4bafcc0c632868ed854b72e1fb60.jpeg)

---

<div class="post-metadata">

**Author:** ![officebone2](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/officebone2/32/8737_2.png) [@officebone2](https://forum.wixstudio.com/u/officebone2)\
**Post date:** [December 26, 2022, 4:47pm UTC](https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223/2 "2022-12-26T16:47:39Z")

</div>

import wixWindow from ‘wix-window’ ;  
import wixLocation from ‘wix-location’ ;  
$w . onReady ( function () {

```
  $w ( "#button" ). onClick (( event ) => { 

      wixWindow . copyToClipboard ( wixLocation . url ) 
          . then (() => { 
              // handle case where text was copied 
          }) 
          . catch (( err ) => { 
              // handle case where an error occurred 
          }); 
  }); 

```

});

[https://www.wix.com/velo/reference/wix-window/copytoclipboard](https://www.wix.com/velo/reference/wix-window/copytoclipboard)  
[https://www.wix.com/velo/reference/wix-location/url](https://www.wix.com/velo/reference/wix-location/url)

---

<div class="post-metadata">

**Author:** ![emilagopian](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/emilagopian/32/20314_2.png) [@emilagopian](https://forum.wixstudio.com/u/emilagopian)\
**Post date:** [January 19, 2023, 10:11pm UTC](https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223/3 "2023-01-19T22:11:04Z")

</div>

Can you add something to that code to upon click show a text field that shows something like “Success”?

---

<div class="post-metadata">

**Author:** ![emilagopian](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/emilagopian/32/20314_2.png) [@emilagopian](https://forum.wixstudio.com/u/emilagopian)\
**Post date:** [January 19, 2023, 10:15pm UTC](https://forum.wixstudio.com/t/how-to-make-a-bottom-for-customers-to-copy-link-to-the-page/50223/4 "2023-01-19T22:15:20Z")

</div>

Also, where do I insert the actual text that needs to be copied?
