Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-20-2006, 04:16 PM #1
- Join Date
- Dec 2006
- Thanked 0 Times in 0 Posts
Let the IFRAME go to a specific part of the page
I'm sure this is JS, or just html, but I need some info:
I will show you the diagram:
CodingmastaALWAYS remember to validate your code
12-20-2006, 07:36 PM #2
- Join Date
- Mar 2006
- Splendora, Texas, United States of America
- Thanked 270 Times in 264 Posts
First, The use of the name attribute in that manner is deprecated. It should be <a id="one">. Note that I changed the actual value from “1” to “one” since IDs cannot begin with a number.
I know of one way to do what but it only works in Firefox 2 based on my tests between that, Internet Explorer 7 and Opera 9. Basically, you assign an ID to the html element of the containing document and link to the the containing document via a target attribute. Thus:
<a href="containing.html#one" target="HTML Element ID">
What you want to do is probably best done using a frameset document type. It seems to me that inline frames are primarily meant to be one‐way, unlike the frames of a frameset document.For every complex problem, there is an answer that is clear, simple, and wrong.