---
title: objectForWebScript
framework: objectivec
role: symbol
role_heading: Instance Property
path: objectivec/nsobject-swift.class/objectforwebscript
---

# objectForWebScript

Returns an object that exposes the plug-in’s scripting interface.

## Declaration

```swift
var objectForWebScript: Any! { get }
```

## Return Value

Return Value An object representing the plug-in’s scripting interface.

## Discussion

Discussion The methods of the object are exposed to the script environment. Messages sent to the returned object will be invoked in the scripting environment. See the WebScripting Protocol Reference informal protocol for more details.
