Widget for Your Website

Add a button to your website to allow visitors to save pages to YouHomepage

Live Demo

Click the button below to try the widget in action!

Installation Instructions

Step 1: Include the Script

Add this script tag to your website, preferably before the closing tag:

<script src="https://youhomepage.com/assets/js/widget.js"></script>
Step 2: Initialize the Widget

Add this JavaScript code to initialize the widget:

<script>
  // Basic initialization
  YouHomepageWidget.init();

  // Or with custom config
  YouHomepageWidget.init({
    buttonText: '⭐ Save to YouHomepage',
    position: 'bottom-right' // bottom-right, bottom-left, top-right, top-left
  });
</script>
Complete Example
<!DOCTYPE html>
<html>
<head>
    <title>My Website</title>
</head>
<body>
    <h1>Welcome to my site</h1>

    <!-- YouHomepage Widget -->
    <script src="https://youhomepage.com/assets/js/widget.js"></script>
    <script>
        YouHomepageWidget.init();
    </script>
</body>
</html>

Features

  • Lightweight - Only a few KB of code
  • No conflicts with other libraries
  • Fully customizable
  • Responsive design for all devices