tion(){
                navigator.clipboard.writeText(pass);
                console.log("copied: "+ pass);
                document.getElementById("display").innerHTML="Password is copied to the clipboard";
                document.getElementById("copy").style.display="none";
            }
        }
    </script>
</body>
</html>