Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I have this iframe with no CSS styling:

< iframe id='sheet' scrolling="no" src='<?php echo $data_url ?>/edit#gid=1024636251'></iframe>

Every time I load the page, the window scrolls to the above iframe on load.

If I replace the php tag with the actual url in this case, my webpage opens fine and has no unusual scrolling behavior. Why is this happening and how can I prevent it?

share

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.