create textbox using javascript

Solutions on MaxInterview for create textbox using javascript by the best coders in the world

showing results for - "create textbox using javascript"
Fabian
18 Jul 2018
1var textBox = document. createElement("INPUT"); 
2textBox. setAttribute( "type","text");
3document.body.appendChild(textBox);
4
Maxime
22 Sep 2017
1let textBox = document. createElement("INPUT"); 
2textBox. setAttribute( "type","text");
3document.body.appendChild(textBox);