IFRAME: is location.href working in any browser??

hello there!!!
i'm using the IFRAME tag in a page like this:



and i want to use Javascript in the homepage.htm(the inline frame)
to open a new page in this frame.i've tried several commands but nothing happens!!
like these:
location.href='page.htm';

document.inner_frame.document.location.href='page.htm';

are those commands working in any i.explorer or other browser??
i've already tried i.e. 5 & 6

is there any other way to do this with a different command,maybe??

Comments


  • Well I dont know if theres a way to change the source of the iframe
    from the document inside the iframe. But if you want to use a button or image or something and place it below the iframe... then you could change the source with an onclick or onmouseover by:
    document.all.inner_frame.src="page.htm"
    good luck, suchaputz
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion