By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

autoscroll iframe

P: 41
I have an iFrame in a PHP file.

Expand|Select|Wrap|Line Numbers
  1. ';
  2. echo '
  3. <iframe src="http://fileho.com/" valign="middle" frameborder="1" scrolling="auto" height="60" width="930"></iframe>
I want this iframe to scroll to a certain position as soon as its loaded, can I do this?
Jan 15 '08 #1
Share this Question
Share on Google+
2 Replies


ak1dnar
Expert 100+
P: 1,584
It's better to handle this at HTML forum, So I'll move it there from php forum.
Jan 15 '08 #2

P: 32
If you can find an id or location within that page to link to, you can load to that direct spot on the page
eg
http://fileho.com/#smc
will show the footer rather than the top of the page.

You will need to look in the source of the page for anchors with names, or elements with IDs to link to EG
[HTML]<a name="something">
<div id="somethingelse">[/HTML]
Jan 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.