HTMLify

yas.html
Views: 230 | Author: abh
<!--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;">&#9733;</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>

Comments