Windows10ARM64 / Domain.html
hdhhhnnnhqhw's picture
Create Domain.html
89ea87d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Open Domain URL</title>
</head>
<body>
<h1>Open Domain URL</h1>
<label for="domainInput">Enter domain:</label>
<input type="text" id="domainInput" value="rhhdhfbfhrhrhrhrhrhrhrhfjdjdjdjdjdjdj.com" style="width: 300px;" />
<button id="openBtn">Open in Browser</button>
<script>
document.getElementById('openBtn').addEventListener('click', () => {
let domain = document.getElementById('domainInput').value.trim();
// Basic validation: add http:// if missing
if (!/^https?:\/\//i.test(domain)) {
domain = 'http://' + domain;
}
// Open the URL in a new tab
window.open(domain, '_blank');
});
</script>
</body>
</html>