Search code examples
javascriptjquerypnotify

Show PNotify notification on page load


I have a page in which I want to display a notification using PNotify. How do I display a notification on this page using the PNotify-javascript library.


Solution

  • As per the PNotify documentation:

    $(document).ready(function() {
        (new PNotify({
            title: 'Regular Notice,
            text: 'Check me out! I\'m a notice.',
            type: 'info',
            styling: 'bootstrap3'
        }));
    });