How to fill in form field, and submit, using javascript?

后端 未结 5 1669
渐次进展
渐次进展 2020-11-29 23:34

If I have an html document whose rough structure is





5条回答
  •  忘掉有多难
    2020-11-30 00:32

    It would be something like:

    document.getElementById("username").value="Username";
    document.forms[0].submit()
    

    Or similar edit: you guys are too fast ;)

提交回复
热议问题