How to put a code on the button?

Thank you for your reply @johnmn
Can you explain more about correct link format