Skip to content

Options

allowJs

Run the page JavaScript.

Type
boolean
Default
true
On this page

OverviewLink to this section

With false, the page loads with JavaScript switched off, like a browser that has scripts disabled. It is handy for pages rendered on the server, for checking what visitors without JavaScript get, and for pages whose scripts get in the way of a clean shot.

ExampleLink to this section

The same request with the SDK, with cURL and as the raw JSON body.

screenshot.ts
import { Url2Image } from '@url2image/sdk'

const { success, data, message } = await Url2Image({
    url: 'https://example.com',
    token: process.env.URL2IMAGE_TOKEN,
    options: {
        allowJs: false
    }
})

Good to knowLink to this section

Every option, grouped, is in the options overview.

Something unclear or missing on this page?

Tell us