Make homepage

Hi guys,
how can make a button that makes the current page my homepage ?
im 99% sure there’s Javascript involved and I’ve tried writing it my self

P.S
if its anyhelp , I got one button to work (adding to favorites), maybe its the same idea…

please help :thumb2: