# Function Reference

# _IELoadWaitTimeout

Retrieve or set the current value in milliseconds _IELoadWait() will try before timing out

#include <IE.au3>
_IELoadWaitTimeout ( [$iTimeout = -1] )

## Parameters

$iTimeout | [optional] retrieve or specify the number of milliseconds 0 or positive integer sets timeout to this value -1 = (Default) returns the current timeout value (stored in global variable $__IELoadWaitTimeout)

## Return Value

Returns the current timeout value if $iTimeout = -1, else returns 1.

## Remarks

There is no way to completely disable the Timeout value.
You can functionally do this however by setting it to a very large positive integer.
The initial timeout value is 30000 ms (5 minutes).

## Related

_IELoadWait

## Example

### Example 1

    ; Obtain current timeout value

    #include <IE.au3>
    #include <MsgBoxConstants.au3>

    Local $iCurrentTimeout = _IELoadWaitTimeout()
    MsgBox($MB_SYSTEMMODAL, "_IELoadWaitTimeout", $iCurrentTimeout / 1000 & " sec")

### Example 2

    ; Set timeout to 1 minute (60000 milliseconds)

    #include <IE.au3>
    #include <MsgBoxConstants.au3>

    _IELoadWaitTimeout(60000)

    Local $iCurrentTimeout = _IELoadWaitTimeout()
    MsgBox($MB_SYSTEMMODAL, "_IELoadWaitTimeout", $iCurrentTimeout / 1000 & " sec")