A
Andrew Poulos
Rather than doing this
<script type="text/javascript">
foo = function() {
window["vid"].scrollTo(0,203);
};
</script>
<iframe onload="foo" name="vid" width="835" height="560"
src="http://www.vid.com/play?u=hup"></iframe>
to scroll the IFRAME after it loads I need to do it inline. Alas, this
<iframe onload="this.scrollTo(0,203)" name="vid" width="835"
height="560" src="http://www.vid.com/play?u=hup"></iframe>
returns the error that 'this.scrollTo is not a function' even though
'this' does refer to the IFRAME.
I've tried various permutations but I can't sort it out. How can I get
the IFRAME's content to scroll onload with inline code?
Andrew Poulos
<script type="text/javascript">
foo = function() {
window["vid"].scrollTo(0,203);
};
</script>
<iframe onload="foo" name="vid" width="835" height="560"
src="http://www.vid.com/play?u=hup"></iframe>
to scroll the IFRAME after it loads I need to do it inline. Alas, this
<iframe onload="this.scrollTo(0,203)" name="vid" width="835"
height="560" src="http://www.vid.com/play?u=hup"></iframe>
returns the error that 'this.scrollTo is not a function' even though
'this' does refer to the IFRAME.
I've tried various permutations but I can't sort it out. How can I get
the IFRAME's content to scroll onload with inline code?
Andrew Poulos