Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   DIV with scroll and innerHTML (http://www.velocityreviews.com/forums/t526190-div-with-scroll-and-innerhtml.html)

Hanoi 08-01-2007 12:35 PM

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.


Neredbojias 08-01-2007 07:53 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57