-1

My Code is:

document.getElementsByName("username").value = "DUBISTFAKE"

does not work pls help me im new to Js.

1 Answers1

0

Try this.

document.getElementsByName('username')[0].value = 'DUBISTFAKE'
Albert Einstein
  • 7,472
  • 8
  • 36
  • 71
J K
  • 754
  • 6
  • 12