Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.