OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <title>Align in textarea Test</title> | |
4 </head> | |
5 <body> | |
6 <p>The following textarea elements should all be rendered on the left, with
their text aligned to the left.</p> | |
7 <textarea align="right" cols="50">This is should be aligned to the left.</te
xtarea> | |
8 <br> | |
9 <textarea align="left" cols="50">This is should be aligned to the left.</tex
tarea> | |
10 <br> | |
11 <textarea cols="50">This is should be aligned to the left.</textarea> | |
12 | |
13 <br> | |
14 <textarea cols="50" id="test1">This is should be aligned to the left.</texta
rea> | |
15 <script> | |
16 <!-- | |
17 var obj1 = document.getElementById('test1'); | |
18 obj1.setAttribute('align', 'right'); | |
19 --> | |
20 </script> | |
21 | |
22 <div id='insertionpoint'></div> | |
23 <script> | |
24 <!-- | |
25 var ins = document.getElementById('insertionpoint'); | |
26 var obj2 = document.createElement('TEXTAREA'); | |
27 obj2.setAttribute('align', 'right'); | |
28 obj2.setAttribute('cols', '50'); | |
29 obj2.appendChild(document.createTextNode('This is should be aligned to t
he left.')); | |
30 ins.appendChild(obj2); | |
31 //--> | |
32 </script> | |
33 </body> | |
34 </html> | |
OLD | NEW |