have issue about connecting on a html/javascript project

so I was coding a html/javascript project that will do multiple tasks such as translating,calculating,show weather reports,etc…But i dont know how to connect 2 index.html file
Example:On the navigation bar,you press a button and it will show you the content of that button