open-with-a-tag
v1.0.0
Published
Open link by creating a tag and simulate click it
Downloads
2
Readme
Open Link With <a> tag
- Open link by creating <a> tag and simulate click it
- Support <a> tag attributes
Install
npm i open-link-with-a-tag
Usage
import open from "open-with-a-tag";
open('https://www.google.com/', {
rel: 'noreferrer noopener',
target: '_blank'
})
Browser compatibility
- Chrome 60+
Use Babel for better browser support