openUrl
Open URL in new window/tab.
Usage
js
import { openUrl } from 'js-cool'Signature
typescript
function openUrl(url: string): voidParameters
| Parameter | Type | Description |
|---|---|---|
url | string | URL to open |
Examples
js
openUrl('https://example.com')
// Opens in new tab
// Open download link
openUrl('/files/document.pdf')