How can I call a function when it is on the onClick event: <a class="classes" href="javascript:;" onclick="$.Notification.autoHideNotify('error', 'top right', 'Header','Main')">Button</a> <a class="classes" href="javascript:;" onclick="$.Notification.autoHideNotify('error', 'top right', 'Header','Main')">Button</a> without eventa on pressing, that is, let's say, when the page loads

  • so there is an onLoad event learn.javascript.ru/onload-onerror - dpi
  • @dpi Can you give an example in the code please? Is it possible at all without connecting external files? - Ivan Lebedev
  • 3
    $(function(){ $("#id_вашей_кнопки").click(); } - Alexander Belinsky

0