Hello all, I don’t know if you can help me, my problem is somewhat unusual:
I have a long page here: http://april-calendar.com
I have an iframe in the middle of the page, the url is from wikipedia, ending with a #Something and so it scrolls the iframed page to the approriate anchor.
The problem is that when the iframed page scrolls to the anchor, the main page also scrolls down to the middle of the page to show the iframe.
At the moment I have tried to solve the problem by called a function in the onload of the iframe, this function scrolltotop the main page.
The result is that the main page loads, the iframed page loads, then suddenly the main page scrolls to the iframe, my function scrolls the main page back to the top.
So you see a glitch happening at some point, very quickly. That’s one problem. Another problem with this solution is that when you go to the main page and start scrolling down before the iframe finished loading you are then taken to the iframe and back to the top, not user friendly.
Now I’ve also noticed another problem, more important, sometimes the main page doesn’t scroll back to the top, so the page stay at the iframe level (middle of page)
I would like a simple solution if possible, like the main page not jumping to the iframe in the first place. Is that possible with an attribute in the iframe code?
Note that I don’t have access to the iframed page since it’s wikipedia’s.
Thank you for any help you can give me on this very particular problem to which I found no acceptable solution by googling it.