/[suikacvs]/www/test/html/form/text/value-nl-bare.html
Suika

Contents of /www/test/html/form/text/value-nl-bare.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Sat May 27 08:30:55 2006 UTC (20 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +27 -2 lines
File MIME type: text/html
DOM access added

1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Single-line Text Input with New Line</title>
5 <script type="text/javascript" src="../../../support/result.js"></script>
6 </head>
7 <body onload="
8 var iel = document.getElementsByTagName ('input')[0];
9 setResult ('domValue', iel.value);
10 setResult ('domDefaultValue', iel.defaultValue);
11 setResult ('domGetAttributeValue', iel.getAttribute ('value'));
12 ">
13 <h1>Single-line Text Input with New Line</h1>
14 <form action="../asis" method="post">
15 <input type="text" name="text1" value="abcdefg
16 ABCDEFG"
17 onchange="
18 setResult ('domValue', this.value);
19 setResult ('domDefaultValue', this.defaultValue);
20 setResult ('domGetAttributeValue', this.getAttribute ('value'));
21 ">
22 <input type="submit">
23 </form>
24
25 <h2>Source Code</h2>
26
27 <p><code>value="abcdefg<br>ABCDEFG"</code></p>
28
29 <h2>DOM <code>value</code></h2>
30
31 <p id="domValue"></p>
32
33 <h2>DOM <code>defaultValue</code></h2>
34
35 <p id="domDefaultValue"></p>
36
37 <h2>DOM <code>getAttribute ('value')</code></h2>
38
39 <p id="domGetAttributeValue"></p>
40
41 </body>
42 </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24