Auto scroll in iframe

Hi there,

I have a website loaded into an iframe on my page. When the iframe loads i want it to auto scroll to the top of the iframe.

My code for the iframe is

iframe style=“position:absolute;left:200px;top:180px;width:1200px;height:19000px;z-index:2;” src=“mywebsite”
frameborder=“0”
marginheight=“0”
marginwidth=“0”
width=“100%”
height=“100%”
scrolling=“no”>

my style

style type=“text/css”>
html {
overflow: auto;
}

    html, 
    body, 
    div, 
    iframe { 
        margin: 0px; 
        padding: 0px; 
        height: 100%; 
        border: none; 
    } 
      
    iframe { 
        display: block; 
        width: 100%; 
        border: none; 
        overflow-y: auto; 
        overflow-x: hidden; 
    }
Sponsor our Newsletter | Privacy Policy | Terms of Service