469,949 Members | 2,180 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

=> Scroll IFrame Content to desired Position (JavaScript)

Scroll IFrame Content to desired Position (JavaScript)
======================================
How can I scoll the content of an Ifram to a desire Position?
The function should be:
window.scrollTo(x,y)

BUT how do I have to use this function so that applies to the IFrame content

Thanks for your help
Alexander
Jul 23 '05 #1
1 4946
Just something like this :o)

<body>
<iframe name="whee" src="filename.html"></iframe><br/>
<a href="#" onclick="top.frames['whee'].scrollTo(0,100)">100</a>
</body>

If you want to access your iframe from the parent document :o)

Best Regards

Nick

"Alexander" <al******************@freenet.de> wrote in message
news:c9*************************@posting.google.co m...
Scroll IFrame Content to desired Position (JavaScript)
======================================
How can I scoll the content of an Ifram to a desire Position?
The function should be:
window.scrollTo(x,y)

BUT how do I have to use this function so that applies to the IFrame content
Thanks for your help
Alexander

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Axel Schick | last post: by
reply views Thread by Martin Eyles | last post: by
2 posts views Thread by Merlin | last post: by
1 post views Thread by bulldog8 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.