HOW TO CREATE FACEBOOK LIKE BUTTON USING HTML5,CSS & JAVASCRIPT



<!DOCTYPE html>
<html>
<head>
<title>oston</title>
<script type="text/javascript">
var likes =0;
function like(){
document.getElementById("show").innerHTML=likes;
likes=likes+1;
}

</script>

<style type="text/css">
#button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
</style>
</head>
<body>

<button id="button" onclick="like()">LIKE</button>
<p type="text" style="color:blue;"id="show"></p>
<h2>LIKES</h2>
</body>
</html>
CLICK HERE TO SEE THE REACTION:
2

LIKES

Comments

Popular posts from this blog

Make Your Own Evil USB

Top 10 Most Popular Programming Languages in 2018

Create Fake File in Window PC in Any Size and Any Format