Mehul Prajapati

Mehul Prajapati

  • NA
  • 1.3k
  • 45.9k

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)