Skip to content

Tag: javascript

Using submit type but IF statement does not work

I am trying to make a very simple login page for a website I created and I am having issues with the submit button. I got the submit button to work fine if I use a “button” type in HTML however the Enter key does not work then. I discovered if I use a “submit” type, the Enter button an…

JS Using objects dinamic keynames

I need to use object which contains my settings, mainly keynames assignment. But I cant figure out why it does not work Everything seems quite simple but it gives me error! So what im doing wrong? Answer Try this:

Why the input value wont update ? when i click the send button?

I try to run the code it works for the first time but in the second time it won’t work I don’t know why ? I want to make it in a way that I can send several messages over and over Answer Issues with .innerHTML You are assigning to .innerHTML. This causes recreation of the element’s descendan…