=> Scroll IFrame Content to desired Position (JavaScript)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexander

    #1

    => 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
  • Grunken

    #2
    Re: => Scroll IFrame Content to desired Position (JavaScript)

    Just something like this :o)

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

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

    Best Regards

    Nick

    "Alexander" <alexander.keys selitz@freenet. de> wrote in message
    news:c92c4ed.04 04211205.1096bf d2@posting.goog le.com...[color=blue]
    > 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[/color]
    content[color=blue]
    >
    > Thanks for your help
    > Alexander[/color]


    Comment

    Working...