...

View Full Version : need help with anchors in iframes



alapimba
07-17-2007, 11:03 AM
Hello,

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:

Kor
07-17-2007, 11:15 AM
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.

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum