3 <script type=
"text/javascript">
6 function resizeContainer(id
) {
7 var e
= document
.getElementById(id
);
9 if (w
> 800 && w_inc
==1)
11 if (w
< 100 && w_inc
==-1)
13 e
.style
.width
=(w
+w_inc
)+'px';
15 var h
= e
.clientHeight
;
16 if (h
> 800 && h_inc
==1)
18 if (h
< 100 && h_inc
==-1)
20 e
.style
.height
=(h
+h_inc
)+'px';
24 var table
= document
.getElementById('table');
25 var newNode
= document
.createElement('caption');
26 table
.appendChild(newNode
);
27 resizeContainer('test');
29 newNode
= document
.createElement('caption');
30 table
.appendChild(newNode
);
38 <body onload=
"boom()">
41 <table id=
"table" width=
"100%" height=
"100%"><tbody><tr><td></td></tr></tbody></table>