Mehul Prajapati

Mehul Prajapati

  • 955
  • 1.3k
  • 25.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.

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)