Attaches a .NET Framework event handler to an event on the current Document Object Model (DOM) object.