---
title: javaScriptCanOpenWindowsAutomatically
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkpreferences/javascriptcanopenwindowsautomatically
---

# javaScriptCanOpenWindowsAutomatically

A Boolean value that indicates whether JavaScript can open windows without user interaction.

## Declaration

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

## Discussion

Discussion The default value is false in iOS and true in macOS.

## See Also

### Setting Java and JavaScript Preferences

- [isSiteSpecificQuirksModeEnabled](webkit/wkpreferences/issitespecificquirksmodeenabled.md)
