I'm designing a website, in which there's a navigation bar on top, and an iFrame below it. What I'm trying to do is, the user will navigate through out the website within this iFrame. And the nav bar will be there on the top, the whole time. Currently, my nav bar links open a document in my iFrame like this:
<li class="nav-top-links"><a class="a-nav-top-links" href="sample1.html" target="tFrame">ITEM1</a></li>
What I want to know is:
How can I change the URL in the browser, based on the link of the opened page in the iFrame? Is there any kind of 'listener' that I can implement? All pages will be of same domain.
Would someone like to advise on any better approach?