---
title: defaultWebpagePreferences
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebviewconfiguration/defaultwebpagepreferences
---

# defaultWebpagePreferences

The default preferences to use when loading and rendering content.

## Declaration

```swift
@NSCopying var defaultWebpagePreferences: WKWebpagePreferences! { get set }
```

## Discussion

Discussion Use this property to specify the JavaScript settings and content mode for new webpages. When the web view navigates to a new page, it passes the default preferences to its navigation delegate, which can modify the preferences or pass them as they are.

## See Also

### Configuring the web view’s preferences

- [preferences](webkit/wkwebviewconfiguration/preferences.md)
