Always scroll to iframe when its loaded

, im using iframe on my web, every time i load the page its scroll me to iframe,  (im usin one page setup), can you help me?

Comments

  • Hi,
    Can you give us the link to your website? Did you check that the URL to the website your viewing does not contain any #tags in it?
    thanks
  • at this moment i have a solution i wrote this code : <body onload="location.href='#'">  after the opening body tag, and it is working fine for me, but i dont know if it is good solution,,,, this iframe refers to app when you can order food,,    my website ist pozriweb.sk  (test site), so you can take a look at it,


  • If you want us to check it you would have to remove this body onload for a now. If this works fo you it's fine.
  • for now its oukey,,, i have this frame only at the test site, on real site there will be different iframe, so for now its oukey, but in future i maybe will need your help,
Sign In or Register to comment.