Function Reference

_FFWindowClose

Closes a browser window

#Include <FF.au3>
_FFWindowClose([$sSearch = ""[, $sSearchMode = "title"]])

 

Parameters

$sSearch Title, current URL (substring) or any tab-Label (RegExp)
$sSearchMode
Optional: Selection mode:
title= (Default) Current window title.
href= Current window URL.
label= Any tab label of the window.

 

Return Value

Success: Returns 1
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
4 ($_FF_ERROR_InvalidValue)
8 ($_FF_ERROR_NoMatch)

 

Remarks



 

Links

https://developer.mozilla.org/En/DOM/Window
https://developer.mozilla.org/En/NsIWindowMediator

 

Related

_FFWindowSelect, _FFWindowOpen

 

Example