Skip to content

iamsolankiamit/external-link-new-tab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

external-link-new-tab

Useful when you need to open external url in new tab.

window.open will normally open external links as Popups.

Install

$ npm install external-link-new-tab --save

Usage

import { openInNewTab } from 'external-link-new-tab';

openInNewTab("https://solankiamit.com")

API

options

Type: Object

timeout

Type: number
Default: 20

Number of milliseconds after which the new tab will open the link. (normally you won't have to change this. You have option to change it, because why not 😉)

License

MIT © Amit Solanki

Releases

No releases published

Packages

No packages published