puppeteer/new-docs/puppeteer.page.setjavascriptenabled.md

23 lines
529 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [setJavaScriptEnabled](./puppeteer.page.setjavascriptenabled.md)
## Page.setJavaScriptEnabled() method
<b>Signature:</b>
```typescript
setJavaScriptEnabled(enabled: boolean): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| enabled | boolean | |
<b>Returns:</b>
Promise&lt;void&gt;