openWindow
See source codeOpen a new window with the given URL and target. Prefer this to the window.open function, as it will work more reliably in embedded scenarios, such as our VS Code extension. See the runtime object in tldraw/editor for more details.
function openWindow(url: string, target?: string, allowReferrer?: boolean): voidParameters
| Name | Description |
|---|---|
| The URL to open. |
| The target window to open the URL in. |
| Whether to allow the referrer to be sent to the new window. |
Returns
voidThe new window object.
Prev
MenuClickCaptureNext
parseDeepLinkString