Forum Moderators: open
I'm googling and googling and can't get it working! :(
I have a iframe frome a external website.
This iframe I want to begin at 200 px on x and 20 px on y..
So i thought, this can be done.. well it should be but i tried different java codes.. But so far no luck!
So i found i have to use window.scrollTo(200,20)
or
document.frames['IFRAME_ID_HERE'].scrollTo(x, y);
All my code is mest up now :( so can't show what i have now makes no sense anymore..
Is it possible?
I will post my code when i cleaned it up!
<ul>
<li><a href="iframe.html#help">Help</a></li>
<li><a href="iframe.html#contact">Contact</a></li>
<li><a href="iframe.html#about">About</a></li>
</ul>
<iframe src="iframe.html"></iframe>
In iframe.html:
<a name="help" id="help"></a>
<h3>Help</h3>
<p>Paragraphs or lists on help . . . </p>
<a name="contact" id="contact"></a>
<h3>Contact</h3>
<p>Paragraphs or lists on contact info . . . </p>
<a name="about" id="about"></a>
<h3>About</h3>
<p>Paragraphs or lists on about topic . . . </p>
It doesn't require anchors. If it's coded with ID elements,
<h3 id="help-head">Help</h3>
You should still be able to do
<li><a href="iframe.html#help-head">Help</a></li>