What's new

Closed Trial

Status
Not open for further replies.
Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Like to Access Content</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 50px;
        }
        #content {
            display: none;
            margin-top: 20px;
            padding: 20px;
            border: 1px solid #ddd;
            background-color: #f9f9f9;
        }
        button {
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
        }
    </style>
</head>
<body>

    <h2>Click "Like" to Access the Content</h2>
    <button onclick="showContent()">Like</button>

    <div id="content">
        <h3>Exclusive Content</h3>
        <p>Thank you for liking! Here is your exclusive content.</p>
    </div>

    <script>
        function showContent() {
            document.getElementById("content").style.display = "block";
        }
    </script>

</body>
</html>
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 0
    Replies
  • 85
    Views
  • 1
    Participant count
Last reply from:
xxrentacionxx

Trending Topics

Online now

Members online
4,459
Guests online
1,606
Total visitors
6,065

Forum statistics

Threads
462,668
Posts
9,383,626
Members
445,062
Latest member
chennie
Back
Top