I making a regster form in HTML, with javascript. I Have file Login.js. My browser says the following error: Uncaught ReferenceError: require is not defined.
require is defined in Node.js. Browsers don't have definition for require.
You need to use node module browserify to compile code that uses require for browsers.
Alternatively you can use RequireJS which is file and module loader for browsers.
And remember that normally you can't access files on your disk with javascript due to security reasons.