Search w3schools.com:

SHARE THIS PAGE

VBScript IsObject Function


VBScript Reference Complete VBScript Reference

The IsObject function returns a Boolean value that indicates whether the specified expression is an automation object. It returns True if expression is an automation object; otherwise, it returns False.

Syntax

IsObject(expression)

Parameter Description
expression Required. An expression

Examples

Example 1

<script type="text/vbscript">

Set x=document
document.write(IsObject(x))

</script>

The output of the code above will be:

True

Try it yourself »

Example 2

<script type="text/vbscript">

x="Peter"
document.write(IsObject(x))

</script>

The output of the code above will be:

False

Try it yourself »

VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]