I have a web page with an iframe that loads a series of thumbnails and when you click on a thumbnail it loads in the same iframe a larger image.

My problem is when you scroll down the page and hit one of the lower images it loads the image and will go to the top of the iframe but not the top containing page.

I have tried using named anchors but cannot get it to reference the containing page.

I would be grateful for some help.