0

I have this code which works for me using "onlick" functun.

onload="gh_success()"

Now i want to use the same function "Onload".

How can I call this on page load?

This is the initial code

     <td><button class="btn btn-success" onclick="gh_success()">SHOW ME</button></td>

I tried

  <script>
    window.addEventListener("load", gh_success)
  </script>

but the notification I am trying to call via

function gh_success() {
  Lobibox.notify('success', {
    pauseDelayOnHover: true,
    continueDelayOnInactiveTab: false,
    position: 'center top',
    showClass: 'rollIn',
    hideClass: 'rollOut',
    icon: 'fa fa-check-circle',
    width: 600,
    msg: 'Your Withdrawal request has been successfully placed,'
  });

didn't come up

Onuwa O
  • 13
  • 6

0 Answers0