I am facing an issue with the navigation on my website. Currently, I have a div on the left side of the page containing a nav bar. However, when a user clicks a link in the nav bar, only the content on the right side of the page changes. Is there a way to ensure that only the right side content is reloaded when a link is clicked? For example, if a link in "navPanel" is clicked, then "contentPanel" should refresh to display the corresponding content.
<nav id="navPanel">
<a>link 1</a>
<a>link 2</a>
<a>link 3</a>
</nav>
<div id="contentPanel">
<p>Content</p>
</div>