Link to home
Start Free TrialLog in
Avatar of ziche
ziche

asked on

Target to iFrame not working with explorer

I have added an iframe to my home page which opens an external page within it by default.

I have placed some links near the iframe with links to other pages and targeted them to open within the iframe. These links work as expected within firefox but nothing happens when I try the page in internet explorer 5 or 6. Where am I going wrong?

A portion of my html:

<iframe name="FRAME1" src="DEFAULT-PAGE.HTML">
</iframe>

<a href="PAGE1.HTML" target="FRAME1"> page1 </a>
<a href="PAGE2.HTML" target="FRAME1"> page1 </a>
<a href="PAGE3.HTML" target="FRAME1"> page1 </a>
Avatar of InfoStranger
InfoStranger

Can you show some screen shots of what you mean?

The codes look fine.
Avatar of ziche

ASKER

I see where I went wrong now. Each of the ancher tags has an onChange() atribute, which I removed from my example code for simplicities sake.

It turns out IE has trouble exceuting the code in the function called through the onChange() exent so also fails to change the page in the IFrame. I wouldnt have been so troubled if it just reported back about this.

Mediator, could I have my points back?
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial