Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

log javascript

console.log(variable)
Comment

Login js

const formlog = document.getElementById("login-form");
const BtnLog = document.getElementById("login-form-submit");
const ErrorMessage = document.getElementById("login-error-msg");
BtnLog.addEventListener("click", (e) => {
e.preventDefault();
const username = formlog.username.value;
const password = formlog.password.value;
if (username === "admin" && password === "itsourcecode") { alert("You have successfully logged in."); location.reload(); } else { ErrorMessage.style.opacity = 1; }
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript wait for async function to finish 
Javascript :: object methods 
Javascript :: update text react native 
Javascript :: javascript code checker 
Javascript :: know when recyclerview is on the last item 
Javascript :: button is not calling js function 
Javascript :: calculate days between two dates in javascript 
Javascript :: date range picker in angular 8 
Javascript :: sveltekit redirect 
Javascript :: check if string contains a value in array 
Javascript :: python best practices example 
Javascript :: Extension Google Chrome Create.. 
Javascript :: in express how do you set the location header 
Javascript :: css striped background 
Javascript :: Argument #1 ($client) must be of type AwsS3Client 
Javascript :: fixed header on scroll vuejs 
Javascript :: Passing Boolean values as Props in react 
Javascript :: Create a Simple Delay Using setTimeout 
Javascript :: apoolo uselaxyQuery bypass cache 
Javascript :: Check if a number is even or odd 
Javascript :: JSON to Ruby Hash Parser 
Javascript :: undefined behavior: the order of volatile accesses is undefined in this statement 
Javascript :: use recoil oitside 
Python :: no module named social_django 
Python :: selenium Keys enter python 
Python :: python windows get file modified date 
Python :: python open url in incognito 
Python :: how to make pyautogui faster 
Python :: sorting by column in pandas 
Python :: python: remove specific values in a dataframe 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =