screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <title>Email Domain Type Checker</title> <script> function getEmailDomainType() { const email = document.getElementById("email").value; const domain = email.split("@")[1]; const personalDomainPatterns = [ "gmail.com", "yahoo.com", "hotmail.com", "outlook.com", // Add more personal domain patterns as needed ]; if (personalDomainPatterns.includes(domain)) { document.getElementById("result").textContent = "Personal Email"; } else { document.getElementById("result").textContent = "Company Email"; } } </script> </head> <body> <h2>Jascript Check Email Domain Type (Personal Email Or Company Email)</h2> <label for="email">Email Address:</label> <input type="text" id="email" placeholder="Enter email" /> <button onclick="getEmailDomainType()">Check</button> <p id="result"></p> </body> </html>