Horje

How to create HTML onafterprint Event Attribute

Execute a JavaScript when a page has started printing, or if the print dialogue box has been closed.
index.html
Example: HTML
 <body onafterprint="myFunction()"> 

Output should be:

How to create HTML onafterprint Event Attribute



Single Articles
How to create HTML onafterprint Event AttributeWindow Event Attributes
How to Execute a JavaScript when a page has started printing, or if the print dialogue box has been closedWindow Event Attributes


Related Articles
HTML onafterprint Event Attribute Window Event Attributes
HTML onbeforeprint Event Attribute Window Event Attributes
HTML onbeforeunload Event Attribute Window Event Attributes
HTML onerror Event Attribute Window Event Attributes
HTML onhashchange Event Attribute Window Event Attributes
HTML onload Event Attribute Window Event Attributes
HTML onoffline Event Attribute Window Event Attributes
HTML ononline Event Attribute Window Event Attributes
HTML onpageshow Event Attribute Window Event Attributes
HTML onresize Event Attribute Window Event Attributes
HTML onunload Event Attribute Window Event Attributes

Type:
html
Category:
Web Tutorial
Sub Category:
Window Event Attributes
Uploaded by:
Admin