Results 1 to 2 of 2
Thread: Accessing Anchors in I-Frames
May 21, 2005, 06:36 #1
- Join Date
- Jun 2003
- 0 Post(s)
- 0 Thread(s)
Accessing Anchors in I-Frames
I'm working on a website which has an I-Frame embedded into a main HTML page. The I-Frame is one long document scrollable which will contain anchors. I'm planning on accessing these anchors from a menu on the main HTML page ... and this is where the problem is. How do I do that? A simple <HREF> tag in the main page won't work as the anchors are embedded in the I-Frame. Do I need to name the I-Frame and use that somehow?
Any help would be really appreciated.
May 21, 2005, 07:02 #2
Yeah if you give the iframe a "name" and "target" that name from the links it should work:
<iframe src="page.html" name="frame1" scrolling="auto" width="100%" height="100%">frame1</iframe>Code:
<a href="page.html#anchor1" title="A Link" target="frame1">a link</a>