Skip to content

Commit 37d0309

Browse files
authored
Update script.js
1 parent 6ef928c commit 37d0309

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

script.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ Birthdays:June 28, 1971, 11:58 PM
1313
he does not own a masion or a yacht But he owns a Tesla.*/
1414
const ELONUSERNAME = 'ElonMusk';
1515
const ELONPASSWORD = 'Money$';
16-
16+
const form = document.getElementById('loginForm');
17+
const msg = document.getElementById('message);
18+
const secret= document.getElementById('secret');
19+
20+
form.addEventListener('submit', function (e) {
21+
e.preventDefault();
22+
const user = document.getElementById('username').value;
23+
const pass = document.getElementById('password').value;
24+

0 commit comments

Comments
 (0)