1 question: use other attributes to find that button
2 question: you can follow WebBrowser Customization, and in particular section "Controlling Download and Execution":
The WebBrowser Control gives you control over what it downloads,
displays, and executes. To gain this control, you need to implement
your host's IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the
WebBrowser Control is instantiated, it will call your
IDispatch::Invoke with this ID. Set pvarResult to a combination of
following flags, using the bitwise OR operator, to indicate your
preferences.
- DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos, and background sounds will be downloaded from the server and displayed or played if these flags are set. They will not be downloaded and displayed if the flags are not set.
additional info: Implement IDispatch::Invoke to be called by a WebBrowser control