# Disable Screenshot

{% hint style="info" %}
You'll need to import the javascript file in your website before starting from this [link](https://docs.webtonative.com/javascript-apis/getting-started).
{% endhint %}

{% tabs %}
{% tab title="Plain Javascript" %}

```
window.WTN.disableScreenshot({
    ssKey:true/false
})
```

{% endtab %}

{% tab title="ES5+" %}

```
import { disableScreenshot } from "webtonative"

disableScreenshot({
    ssKey:true/false
})
```

{% endtab %}
{% endtabs %}

ssKey (Optional - Boolean parameter) - This is to override the settings set during the AddOn customisation. If screenshot was not disabled and you want to block it for a page then pass this value as  true and vice-versa.

Feature added in iOS on 13/06/25\
Feature added in Android on 19/12/25


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webtonative.com/javascript-apis/disable-screenshot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
