Im trying to run two functions; one being a 'reload page' and the other a 'copy to clipboard'. I have tried all the options on this page:
How to call multiple functions with @click in vue?
but none seem to work for me. Can anyone give me any pointers here? Any help is appreciated.
<button @click="reloadPage();
copytheURL(URLcopyaddress);">Copy</button>
methods: {
//reloads the page
reloadPage() {
window.location.reload();
},
//copy to clipboard
async copytheURL(s) {
await navigator.clipboard.writeText(s);
alert("URL Copied!");
},
},