A
A
Anton Semenikhin2020-06-09 20:16:46
JavaScript
Anton Semenikhin, 2020-06-09 20:16:46

How to create a web page in js?

There is a form with an action attribute with a value of auth.js (form handler). After submitting the form, the auth.js file is opened, and instead of being executed, the browser simply displays the code of the file. How to fix the error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2020-06-09
@ranikwebproger

well, here it’s either client js, and then there shouldn’t be anything as an action, and as onsubmit there should be a handler that will remove the standard processing and perform the necessary actions on the client, or it’s server js and everything is much more complicated there, but conditionally there on js own web server, for example on node.js
But just "auth.js form handler" does not work.

R
Rerurk, 2020-06-09
@Rerurk

Rather all eval

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question