Mehul Prajapati

Mehul Prajapati

  • 977
  • 1.3k
  • 27.8k

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:

Answers (1)