assets/scripts/script.js
// Alert users when a password has been created
Alert users when a password has been created
Alert users when a password has been created
function alertUser () {
  passwordText.select();
  passwordText.setSelectionRange(0, 99999)
  document.execCommand("copy");
  alert("The password has been copied to the clipboard.");
}
function alertUser ( ) { passwordText . select ( ) ; passwordText . setSelectionRange ( 0 , 99999 ) document . execCommand ( "copy" ) ; alert ( "The password has been copied to the clipboard." ) ; }
Alert users when a password has been created
Alert users when a password has been created
// Copy the password to the clipboard //Alert user with window alert