Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Problem with login button

syflexer
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

1 year ago

Voters

Comments

TopNew
1
Coder100
Coder100

did you mean

form.innerText += "fulln";

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

1 year ago
1
SixBeeps
SixBeeps

The appendChild() function expects a DOMNode as a parameter, but you're giving it a string. Are you trying to make the elements for the login form?

1 year ago
Load more