Here is the JS I am using This is in the head of the document. I have made a sidebar containing links: I have a target frame as: It works when I click the top level link, Sales in my case, the relevant document gets displayed in the target frame, but as soon I navigate to submenu links, its get