If you're looking to add some dynamic functionality to your website, consider utilizing AngularJS or another MVC framework/library. While they may seem a bit complex for simpler tasks, they can definitely help you achieve the results you desire. Plus, learning these technologies is beneficial as they are highly sought after in the job market.
For more information on AngularJS and how to implement it, check out their official homepage with documentation and tutorials here. Be sure to explore features like routing view templates using ngView module or try ui-router, which was developed by Angular's UI team and offers support for nested views (my personal favorite).
And remember, when seeking resources for web development, steer clear of W3Schools. Check out this site for more information: