---
title: javaScriptInvalidFrameTarget
framework: webkit
role: symbol
role_heading: Type Property
path: webkit/wkerror/javascriptinvalidframetarget
---

# javaScriptInvalidFrameTarget

An error that indicates your content referenced an invalid web frame.

## Declaration

```swift
static var javaScriptInvalidFrameTarget: WKError.Code { get }
```

## Discussion

Discussion WebKit might report this error in the following situations: An evaluated script removes a frame that you reference. Navigation to a different frame occurred and triggered the destruction of the specified frame.

## See Also

### Getting the Error Codes

- [unknown](webkit/wkerror/unknown.md)
- [webContentProcessTerminated](webkit/wkerror/webcontentprocessterminated.md)
- [webViewInvalidated](webkit/wkerror/webviewinvalidated.md)
- [javaScriptExceptionOccurred](webkit/wkerror/javascriptexceptionoccurred.md)
- [javaScriptResultTypeIsUnsupported](webkit/wkerror/javascriptresulttypeisunsupported.md)
- [contentRuleListStoreCompileFailed](webkit/wkerror/contentruleliststorecompilefailed.md)
- [contentRuleListStoreLookUpFailed](webkit/wkerror/contentruleliststorelookupfailed.md)
- [contentRuleListStoreRemoveFailed](webkit/wkerror/contentruleliststoreremovefailed.md)
- [contentRuleListStoreVersionMismatch](webkit/wkerror/contentruleliststoreversionmismatch.md)
- [attributedStringContentFailedToLoad](webkit/wkerror/attributedstringcontentfailedtoload.md)
- [attributedStringContentLoadTimedOut](webkit/wkerror/attributedstringcontentloadtimedout.md)
- [navigationAppBoundDomain](webkit/wkerror/navigationappbounddomain.md)
- [javaScriptAppBoundDomain](webkit/wkerror/javascriptappbounddomain.md)
- [credentialNotFound](webkit/wkerror/credentialnotfound.md)
- [duplicateCredential](webkit/wkerror/duplicatecredential.md)
