A simple npm packege to go to any specific url by click event. Just add data-href to any element.
npm install gourl --save-dev // or npm install gourl -Dhttps://unpkg.com/gourlInclude packege to your project
require('gourl');Now you can add data-href to any element to go a specific url by click.
<button data-href="https://www.google.com/">click</button> <button data-href="https://www.google.in/" data-target="_blank">click</button> <a href="#" data-href="https://www.facebook.com">facebook</a> <input type="text" value="instagram" data-href="https://www.instagram.com" data-target="_blank"> <br> <br> <span data-href="https://www.youtube.com" data-target="_blank">youtube</span>data-href- put your hyperlink here to godata-target- put url target method. supported values_blankand_self(Default)
