-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4622837
By: rolfn
In the following example I create an "iframe" with a web content. After click on the button I see the top of the web page:
----------------
<window height="400px" width="100%" >
<button label="show">
<attribute name="onClick">
gnu.setVisible(true);
</attribute>
</button>
<iframe height="100%" width="100%" id="gnu"
src="http://www.gnu.org" visible="false" /> </window>
----------------
How can I show the bottom of the web page after the click? I have tried
gnu.setAction("[onshow]:scrollTo(0,9999);");
but this has no effect. Thanks in advance.
...Rolf
no , you can't access the iframe if they are not under the same domain.
For example , if your website is "www.A.com" but you are accessing "www.B.com" in a iframe, there got no any possibility to scroll the iframe.
You could reference this thread for advanced details.
http://stackoverflow.com/questions/1192228/scrolling-an-iframe-with-javascript
Asked: 2007-11-14 12:27:23 +0800
Seen: 394 times
Last updated: Sep 13 '11