View Full Version : need help with anchors in iframes

07-17-2007, 12:03 PM

I have one page (index.html) that as an iframe inside (contents.html) and that iframe has a few anchors (#1, #2, #3...) along it.

Now lets say i have another site not related with this one, i want to create a link that open the main page (index.html) but i wanted it to open the iframe (contents.html) on the 3# anchors instead of open on the top of the contents.html page.

How can i do this? :confused:

Thanks in advance :thumbsup:

07-17-2007, 12:15 PM
If the page loaded in a frame/iframe belongs to other domain, there is no way to do that as, for obvious security reasons, the cross-domain javascript relationship is restricted.

07-17-2007, 12:16 PM
i gave that example because was simpler to understand the links
everything is in the same domain, sorry :o

07-17-2007, 06:30 PM
theres no way to do this if everything is in the same domain?