how do i let onclick read from my javascript file?

declare this function in index.js

function handleClick() {
  if (
    document.getElementById('email').nodeValue ===
  ) {
    alert('You are allowed');

call it on button click

<button onclick="handleClick()">Click</button>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top