Dashboard Temp Share Shortlinks Frames API

HTMLify

2nd.html
Views: 706 | Author: djdj
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!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>