Retrieves a reference to the current window or frame.
HRESULT IHTMLWindow2::get_self(IHTMLWindow2 **p);
- Address of a pointer to a variable of type IHTMLWindow2 interface that receives the current window or frame.
Returns S_OK if successful, or an error value otherwise.
You can use the property to explicitly refer to the current window or frame. To improve scripting efficiency, you also can use it to make implicit window references explicit.