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
| <html>
<head>
<title>xxx</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"/>
<script>
function $(id) { return document.getElementById(id); }
function copyValue(fromInp, toInp) {
alert('FORM:'+fromInp.value);
toInp.getAttributeNode('value').value=fromInp.getAttributeNode('value').value;
alert('TO:'+toInp.value);
}
function steps() {
copyValue($('i1'),$('i2'));
copyValue($('i2'),$('i3'));
copyValue($('i3'),$('i4'));
}
</script>
</head>
<body>
<form accept-charset="UTF-8" method="POST" action="UTF8-Encoding in text files.html">
<input type="text" id="i1" />
<input type="hidden" id="i2" />
</form>
<form accept-charset="UTF-8" method="POST" action="UTF8-Encoding in text files.html">
<input type="hidden" id="i3" />
<input type="text" id="i4" />
</form>
<input type="button" value="Copier" onclick="steps()" />
</body>
</html> |
Partager