W3Schools.com

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
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE