Copy code The code is as follows: ?Js code <br>////Create a new directory<br> Function Newdir () {<br> VAR TXT = DOCUMENT.GetelementByid ("NewDiRTXT"); <br> var diRNAME = txt.value; <br> IF (DIRNAME) {<br> ("Please fill in the directory name (" please fill in the directory name " ); <br> } else { > async: false, <br> async: false, dirname: dirname }, <br> ID = document.getElementById("DirectoryID"); <br> var tOption = document .createElement("Option"); <br> tOption.text = dirname; tOption.value = msg; DirectoryID.appendChild(tOption); <br> txt.value = ""; <br> alert ("Add successfully"); <br><br> ; > > <br><br><br></p> </div>