=> Scroll IFrame Content to desired Position (JavaScript)

A

Alexander

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
 
G

Grunken

Just something like this :eek:)

<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 :eek:)

Best Regards

Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top