Thanks, johny10151981.
I know that adding #iframe_target caused the problem, but the reason I put it in is that I wanted the iframe to open not showing the top left corner of the blog (since the iframe is a small one on the side of the main page, and all you see is boring white space), and it makes no sense to me that if you load a webpage in an iframe at some anchor point then the main page somehow scrolls down.
So if I...
User Profile
Collapse
-
Why does my page scroll down when the iframe loads to an anchor point?
Hi, I'm new here.
I'm teaching my self to write a web site to help my sister's new business. It's in a three column format.
I put an small iframe on the main page's right column to show her blog, and I put in an anchor point (#iframe_target ) in the blog so that the iframe shows the beginning of the content of the blog rather than the top left corner:
Code:<iframe src="http://DOMAIN.blogspot.com#iframe_target"
No activity results to display
Show More
Leave a comment: