HTMLify
yas.html
Views: 687 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!--You are star--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <center> <div id="main"> <h1 style="font-size:200px;color:#ffb224;margin-bottom:2px;">★</h1> This is a Star ?<br> <button onclick="is('Yes')">No</button> <button onclick="is('No')">Yes</button> </div> </center> <script> var main = document.getElementById("main"); var is = function(yn){ main.innerHTML = `<h1>${yn} this is not the Star</h1>So do you know what is star ?<br><br><button onclick="yas()">WHAT?</button>`; } var yas = function(){ main.innerHTML = `<marquee><h1 style="font-size:200px;">You are star :D</h1></marquee>`; } </script> |