Ticker

6/recent/ticker-posts

Email Generator Tool


 

Email Generator Tool

Email Generator Tool

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Email Generator Tool</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="container">
      <h1>Email Generator Tool</h1>
      <input type="text" id="email" value="" readonly>
      <button id="generate-btn">Generate</button>
    </div>
    <script src="script.js"></script>
  </body>
</html>
<style>
body {
  font-family: Arial, sans-serif;
}



h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

input {
  width: 30rem;
  height: 3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

button {
  width: 10rem;
  height: 3rem;
  border: none;
  background-color: #2196f3;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: #0d8bff;
}

</style>

<script>
const emailInput = document.getElementById('email');
const generateBtn = document.getElementById('generate-btn');

generateBtn.addEventListener('click', generateEmail);

function generateEmail() {
  const randomString = Math.random().toString(36).substring(2, 8);
  emailInput.value = `${randomString}@google.com`;
}

</script>

Post a Comment

0 Comments