'How to set iframe content scroll?

I have an iframe and I want to set the scroll position to that

<iframe id="quraniframe" width="100%" height="1100px" src="https://quran.com/1?locale=fa" frameborder="0"></iframe>

and this is my JavaScript code's

    $(function() {

        $('#quraniframe').contents().scrollTo(0, 30);
        window.alert("scroll = " + scroll);
})

and this is result in an alert

scroll = undefined

Actually, I use this code to and no effect in iframe content



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source