AllowFocusChange method
Queries for permission to grab the focus when loading the page or when a script attempts to focus an element.
Syntax
HRESULT retVal = object.AllowFocusChange(pfAllow);
Parameters
pfAllow [out]
Type: BOOLIndicates whether permission was obtained to grab focus.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
IProtectFocus::AllowFocusChange was introduced in Windows Internet Explorer 7.