---
title: "webView:windowScriptObjectAvailable:"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webframeloaddelegate/webview:windowscriptobjectavailable:"
---

# webView:windowScriptObjectAvailable:

Called when a frame’s scripting object for a page is available. Use the webView(_:didClearWindowObject:for:) method instead.

## Declaration

```occ
- (void) webView:(WebView *) webView windowScriptObjectAvailable:(WebScriptObject *) windowScriptObject;
```

## Parameters

- `webView`: The web view containing the frame.
- `windowScriptObject`: The window object in the scripting environment.

## Discussion

Discussion This method is invoked before the page is actually loaded.

## See Also

### Related Documentation

- [windowScriptObject](webkit/webview-swift.class/windowscriptobject.md)
