HTMLify

Views: 265 | Author: djdj
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title></title>
        <link rel="stylesheet" href="">
        <style>
            button{
                height:80px;
                width:60%;
                font-family:'Times New Roman', Times, serif;
                font-size:30px;
                border-radius: 40px;
                border-top-left-radius: 5px;
                margin-top:30%;
                margin-left: 25%;
                background-color:skyblue;
            }
        </style>
    </head>
    <body>
        <button>
            Click me
        </button>
        <script>
            let btn = document.querySelector('button');
            btn.addEventListener('click',InputMsg);
            function InputMsg(){
                let name = prompt('Enter Your Name');
                btn.textContent = 'Your Name: ' + name;
            }
        </script>
    </body>
</html>

Comments