News

The Attributes.Add method shown on the last line adds an "onClick" event to the button named "Button1." This causes the button to execute the JavaScript code defined in the textHTML variable.
Locate the code that creates the existing print button. Though the specific code used may vary, the phrase "onClick="window.print ()" " will appear in it (though without the external quotes).