Mehul Prajapati

Mehul Prajapati

  • 910
  • 1.2k
  • 22.1k

Prevent to call onload event while started to ready page.

Jan 10 2018 8:04 AM
I have design html with onload event. now i want to prevent to call this event with jquery.
 
<body id="bodyMain" onload="window.print();">
 
I have tried with off(), .unbind and .removeAttributeNode, still calling onload event and showing print preview dialog.

Answers (1)