View Full Version : Frames and returning to the top?

03-10-2006, 04:44 PM

I have a problem.

I have a page that i have intergrated into one of my sites. This page is intergrated using an iframe so it looks like its part of the site. The trouble i'm having is:

I have some pictures on the iframe page that when they are clicked they take you to a bigger pic and some more info. The trouble is when i keep scrolling down the main page(the one that isn't in the iframe) and i click on a pic near the bottom of the page it loads the bigger pic and info but the main page doesn't scroll back to the top so it looks like nothing has loaded!

Is there a piece of script that when i click the picture link in the iframe page it will load the pic but also make the main page(the one that isn't in the iframe) return to the top?



Mr J
03-10-2006, 06:53 PM
You could try adding


to the onclick event

03-14-2006, 12:07 PM
Hi, Thanks for the reply. I added Parent. to it and i worked great! Thanks Very much :)