Move To Top Of Page When Changing Iframe Content Without Using Javascript
I have checked the questions: How do I Scroll parent page to top when child page is click within iframe? and Scrolling parent page when remote content loads in iframe But I would l
Solution 1:
You may want to try this piece of code:
<a href="#Fascione" onclick="parent.scrollTo(0,0);">Go to the top</a>
This is a easy way to scroll the page to the top.
Solution 2:
I think you will have to use Javascript, which isn't that hard. Here's what to change:
<ahref="#Fascione"onclick="var map = document.getElementById('MapFrameID'); map.src = 'http://maps.gooogle.com/maps...'">mostra sulla mappa</a>
The href="#Fascione" will push the page to the top, and changing the SRC on the iframe will automatically trigger the update.
Post a Comment for "Move To Top Of Page When Changing Iframe Content Without Using Javascript"