Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q986

Feedback on: irt.org FAQ Knowledge Base Q986

Sent by Luisa Klose on March 27, 2000 at 07:58:30: - feedback #997

Worth:
Worth reading

Comments:
It is possible to use scrollBy() with an iFrame. The focus has to be set to the iFrame first. Try this script:
<script language="JavaScript">
function scrollDown()
{
document.iframeID.focus();
document.iframeID.scrollBy(0,200);
}
</script>

Note: I can only verify that the above script works with IE5.


Sent by andy Jones on October 24, 2000 at 11:24:49: - feedback #1906

Worth:
Very worth reading

Comments:
You can target the iframe by using the following: you've mentioned writing to the iframe array in another of your FAQs, but i can not remember which one. Anyway this works as a text link for scrolling the iframe with it scrolling tag set to NO
<A REF="javascript:document.frames[0].scrollBy(0,10);">Scroll Down</A>


©2018 Martin Webb