If there is an id, you can use document.getElementByid ('idname'). Value If only Name has no ID, you can use the value: Document.formname.cc.value = document.formname.dd. Valuedocument.Forms [0] .cc.value = document.forms [0] .dd.value // There is a colon (:) in the correct symbol, use the following expression: Document.GetElementsByname ('AA ') [0] .Value = Document.GtelementsByname (' bb ') [0] .Value