Get started with AlertifyJS CDN

GPL-3.0 licensed

Lightweight library: AlertifyJS displays customizable notifications.

Tags:
  • alertifyjs
  • alert
  • confirm
  • prompt
  • dialog
  • alertify
  • javascript framework
  • pretty dialogs

Stable version

Copied!

How to start using AlertifyJS CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with AlertifyJS CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/css/alertify.min.css"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/css/themes/default.rtl.min.css"/>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/build/alertify.min.js"></script>
</head>
<body>
    <button id="show-alert">Show Alert</button>
    <script>
        document.getElementById('show-alert').addEventListener('click', () => {
            Alertify.alert('Hello', 'Welcome to AlertifyJS!').set('notifier', 'position', 'top-right').show();
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions