A simple and interactive Push Notification Web Application built using HTML, CSS, and JavaScript. This project demonstrates how to use the Browser Notification API to request user permission and send real-time push notifications directly from the browser.
🌐 Live Demo: https://vaibhavsain.github.io/push-notification/
- Request notification permission from the user
- Send push notifications on button click
- Clean and minimal UI
- Uses native Browser Notification API
- Lightweight and beginner-friendly
- HTML5 – Structure of the application
- CSS3 – Styling and layout
- JavaScript (ES6) – Logic and browser interaction
- User clicks on the Enable Notifications button
- Browser asks for notification permission
- Once allowed, notifications can be triggered instantly
- Notifications appear even outside the browser tab
📁 push-notification
┣ 📄 index.html
┣ 📄 style.css
┗ 📄 script.js
-
Clone the repository
git clone https://github.com/VaibhavSain/push-notification.git
-
Open
index.htmlin your browser -
Allow notification permission
-
Click the button to trigger notifications
- Understanding the Browser Notification API
- Working with user permissions
- Event-driven JavaScript
- Improving user engagement through real-time alerts
- Notifications work only on HTTPS or localhost
- Some browsers may block notifications by default
- Best experienced on modern browsers like Chrome, Edge, or Firefox
Built as part of my learning journey to explore interactive web features and browser APIs.
- GitHub: https://github.com/VaibhavSain
- LinkedIn: https://www.linkedin.com/in/vaibhav-sain/
⭐ If you found this project helpful, consider giving it a star!