![]() |
DIV with scroll and innerHTML
Hi,
I can't understand why the code below doesn't works in IE but It works in Firefox. <html> <head><title></title> <script> function change(){ var divtext=document.getElementById("TEXT"); divtext.innerHTML="change<br>change<br>change<br>c hange"; } </script> </head> <body onLoad="change();"> <table> <tr><td> <table> <tr><td>CHANGE</td></tr> <tr><td><div id='TEXT' style=" overflow-y: auto; height: 200px;"></div></td></tr> </table> </td></tr> </table> </body> </html> Thanks. |
Re: DIV with scroll and innerHTML
Well bust mah britches and call me cheeky, on Wed, 01 Aug 2007 12:35:42 GMT
Hanoi scribed: > Hi, > > I can't understand why the code below doesn't works in IE but It works > in Firefox. > > <html> > <head><title></title> > <script> > function change(){ > var divtext=document.getElementById("TEXT"); > > divtext.innerHTML="change<br>change<br>change<br>c hange"; > } > </script> > </head> > > <body onLoad="change();"> > <table> > <tr><td> > <table> > <tr><td>CHANGE</td></tr> > <tr><td><div id='TEXT' style=" overflow-y: auto; height: > 200px;"></div></td></tr> > </table> > </td></tr> > </table> > </body> > </html> > > Thanks. Ah, it is a mystery, ain't it? Now with a url, I might have actually been able to be where you screwed up, but alas, you've parlayed your fauxes pas. -- Neredbojias Half lies are worth twice as much as whole lies. |
| All times are GMT. The time now is 04:38 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.