puppeteer/new-docs/puppeteer.target.type.md
Alex Rudenko 7025f1c5ea
docs(new): migrate Target to TSDoc (#6067)
* docs(new): migrate Target to TSDoc

Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2020-06-22 14:57:04 +02:00

688 B

Home > puppeteer > Target > type

Target.type() method

Identifies what kind of target this is.

Signature:

type(): 'page' | 'background_page' | 'service_worker' | 'shared_worker' | 'other' | 'browser' | 'webview';

Returns:

'page' | 'background_page' | 'service_worker' | 'shared_worker' | 'other' | 'browser' | 'webview'

Remarks

See docs for more info about background pages.