Bhawna Tuteja

Bhawna Tuteja

  • NA
  • 544
  • 264.4k

To avoid calling of Onload function Twice

Jul 23 2020 1:03 AM
Hi,
I have a application in which body tag one 'onload' function is defined.
I am doing some operations in that onload function which is working fine when page is getting loaded.
I have a button that page and on click of that I am doing some operations which is also working fine.
But when I am clicking on button after button operation , 'onload' function is also getting called.
I want to avoid call of 'onload' function i.e. wanted to do button click operations only.
 
How can I do that? 

Answers (1)