Mehul Prajapati

Mehul Prajapati

  • NA
  • 1.3k
  • 45.9k

Close print preview popup or prevent to open jquery

Jan 11 2018 1:21 AM
Desining html for printing in iframe with onload event in body tag. i want to prevent popup print preview dialog or close automatically when open, but not getting any success yet. 
 
<body id="bodyMain" onload="window.print();">
 
i have tried with remove remove attibute, unbind, off.
 
anybody have idea to do it? 

Answers (2)