Problem with login button
syflexer

i get this error msg when i press my login button

login.php:56 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
at login (login.php:56)
at HTMLButtonElement.onclick (login.php:10)

but i have no idea how to fix it

You are viewing a single comment. View All
Coder100

did you mean

you can only append elements. You can edit HTML.

Anyways, a better solution is to use textnodes

https://www.w3schools.com/jsref/met_document_createtextnode.asp