onclick in IE

Joined: 11/28/2008

The following code works in Firefox.

<li><a href="#self" onclick="document.getElementById('products').innerHTML='&lt;iframe src=&quot;open/1.html&quot; width=&quot;400%&quot; height=&quot;600&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot;&gt;&lt;/iframe&gt;'">5-6-6 Starter Fertilizer</a></li>

But blows the right side out in IE.

Page = http://cloneconnection.net/ans/products.html

Any help would be great.

Thanks
Ked

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
IE7 has some issues with

IE7 has some issues with iframes. (The worst would be, if someone had disabled the iframes thing in their IE settings.) Google for the things that can make IE happy which I seem to remember are stuff like an id for the iframe, and other things.

But is there any reason why you need onclick and javascript for this code, rather than just a normal link targetting a named iframe?

Blessings

Tony

Online outreach:
Internet Evangelism Day
Helping church websites:
Church Websites

Joined: 11/28/2008
But is there any reason why

But is there any reason why you need onclick and javascript for this code, rather than just a normal link targetting a named iframe?

I fixed it doing as you suggested.

Thanks

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"