JavaScript Toast notifications

This script has less than 1 Kbyte

The jSuites.notification is a lightweight JavaScript toast-like to notify the user with a quick message in the corner of the screen.

The notification will hide after four seconds unless otherwise specified.

<script src=""></script>
<link rel="stylesheet" href="" type="text/css" />

<input type='button' value='Show notification' class='jbutton dark' id='notification' />
<input type='button' value='Show error' class='jbutton dark' id='notification-error' />

document.getElementById('notification').onclick = function() {
        name: 'Jsuites toast notification',
        message: 'Successfully Update',

document.getElementById('notification-error').onclick = function() {
        error: 1,
        name: 'Error message',
        message: 'Something went wrong',