Feedback on: irt.org FAQ Knowledge Base Q986
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.
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>