A simple npm packege to go to any specific url by click event. Just add data-href to any element.
Install packege
npm install gourl --save-dev// ornpm install gourl -D
CDN
https://unpkg.com/gourl
Include packege to your project
;
Now you can add data-href
to any element to go a specific url by click.
clickclickfacebook youtube
Available attribue
data-href
- put your hyperlink here to godata-target
- put url target method. supported values_blank
and_self
(Default)