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>
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>
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The codes look fine.