...

View Full Version : Open a page in iframe at a <a name>



Kor
10-21-2003, 10:20 AM
In the parent page I need something like

function bla(){

open a page in iframe at <a name="blabla">

{

or to call a function written in that child page which can be called from parent... I don't know how would be better.

Has anyone any ideea, please?

glenngv
10-21-2003, 10:42 AM
try:


function bla(){
window.open("pageInIframe.htm#blabla");
}

or if you want to put the code in the iframe page itself and the named anchor is in the SAME page the iframe is currently in:


function bla(){
location.href="#blabla";
}

then call it in the parent like this:


top.frames["nameOfTargetIframe"].blah();

Kor
10-21-2003, 11:07 AM
thanks, second variant is what I needed. It works... I was not sure, theoretically speaking, how to call a function in iframe from a parent, that was the real problem. Thanks a lot.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum