Tuesday, July 4, 2017

Make A Link That Will Open With The Double Click

With Jquery we can make many amazing functions and this is one of them. If you wanna make a link that will open with a Double click then this post is for you. And now some people will ask Why make a link that will open with the double click?  I also don't know.  But if you wanna make it for some reasons then you can easily make by just using the following script.
Make A Link That Will Open With The Double Click




<a id='dlink' href='http://www.helponblogging.blogspot.com'>Help On Blogging All Blogger Tricks Blogging Tips For Beginners</a>
<script>
jQuery(function($) {
    $('#dlink').click(function() {
        return false;
    }).dblclick(function() {
        window.location = this.href;
        return false;
    });
});
</script>
Here is the demo: Help On Blogging All Blogger Tricks Blogging Tips For Beginners

In the above code just replace http://www.helponblogging.blogspot.com and Help On Blogging All Blogger Tricks Blogging Tips For Beginners with anchor text (text that you wanna display on a link).

That's it thanks for reading my this post and keep visiting for more helpful blogger tricks, blogging tips for beginners, make money online and much more.
If you have any question about this post feel free to ask me by dropping your comment below.


3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete

Template Designed By 92TRICKS © Copy Rights All Right Receved
Scroll to Top