<html><head><title>Добавляем текстовое поле =)</title><script>var ids=2;function A() {vvv.innerHTML+="<br><input type='text' id='xv"+ids+"'>";document.forms1.getElementById("xv"+ids).focus(); /*установка фокуса на созданный елемент */ids++;}</script></head><body><div id="vvv"><form name="forms1"><input type="text" id="xv1"></div><input type="text" id="xx2" onFocus="A()"><br></form></body></html>
<HTML><HEAD><SCRIPT>var a=1;function createRadioButton(){ newRadioButton = document.createElement("<INPUT TYPE='text' id='RADIOTEST"+a+"' VALUE='Second Choice'>")vvv.insertBefore(newRadioButton); document.getElementById("RADIOTEST"+a).focus();a++;}</SCRIPT></HEAD>
<BODY><div id="vvv"> </div><input type="text" id="xx2" onFocus="createRadioButton()">
</BODY></HTML>
<html><head><title>Добавляем текстовое поле =)</title><script>var ids=2;function A() {vvv.innerHTML+="<br><input type='text' id='xv"+ids+"'>";document.getElementById("xv"+ids).focus();ids++;}</script></head><body><div id="vvv"><form name="forms1"><input type="text" id="xv1"></div><input type="text" id="xx2" onFocus="A()"><br></form></body></html>
[html] [head] [title]Добавляем текстовое поле =)[/title] [script] function A() { out = document.getElementById('t1'); len = out.rows.length; row = out.insertRow(len-1); lenI=len+1; row.insertCell(0).innerHTML+="[tr][td][input type='text' id='xv"+lenI+"'][/td][/tr]"; document.getElementById("xv"+lenI).focus(); } [/script] [/head] [body] [table border="1" id='t1'] [div id="vvv"] [form name="forms1"] [tr][td][input type="text" id="xv1"][/td][/tr] [tr][td][input type="text" id="xx2" onFocus="A()"][/td][/tr] [/div] [/form] [/table] [/body] [/html]