2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Browser.target
|
|
|
|
---
|
|
|
|
|
|
|
|
# Browser.target() method
|
|
|
|
|
2023-09-19 13:03:19 +00:00
|
|
|
Gets the [target](./puppeteer.target.md) associated with the [default browser context](./puppeteer.browser.defaultbrowsercontext.md)).
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Browser {
|
2023-09-19 13:03:19 +00:00
|
|
|
abstract target(): Target;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
[Target](./puppeteer.target.md)
|