How to create a global function for HOME button


#1

May I know how to create a global function for a HOME button which will appear in every page?
The side menu button will appear in the left and the HOME button will appear in the right of the nav bar. Whenever click on HOME it will direct me to the main page.
I am wondering how can I code the HOME function as side menu, just need to code the function once, and it can apply to every page?