---
title: isJavaScriptEnabled
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpreferences/isjavascriptenabled
---

# isJavaScriptEnabled

A Boolean that indicates whether or not the web view allows JavaScript.

## Declaration

```swift
var isJavaScriptEnabled: Bool { get set }
```

## Discussion

Discussion Set to true if the web view should allow JavaScript, otherwise false.

## See Also

### Enabling JavaScript

- [javaScriptCanOpenWindowsAutomatically](webkit/webpreferences/javascriptcanopenwindowsautomatically.md)
