1.0.6 • Published 6 years ago

gourl v1.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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
// or
npm install gourl -D

CDN

https://unpkg.com/gourl

Include 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>

Demo

Available attribue

  • data-href - put your hyperlink here to go
  • data-target - put url target method. supported values _blank and _self (Default)
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago