window.parent.scrollTo is working in chrome but not woorking in firefox

I have 2 scroll bars in my application. one is Iframe and the other is browser scroll bar. issue is I have to show popup on click on hyperlink in iframe, but the position is mismatching. I have to scroll up browser scroll bar to see the popup. I have used below code for to position in my Typescript, but it is working fine in chrome. But it is not working in mozilla. Please suggest me.

window.scrollTo(0,100); //for iframe window.parent.scrollTo(0, 0); //for browserscroll