Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:38:50+00:00 2026-05-28T01:38:50+00:00

Lately, I’ve been seeing a lot of sites that have clickable objects that don’t

  • 0

Lately, I’ve been seeing a lot of sites that have clickable objects that don’t have any hrefs or onclicks in their html code. I also tried alerting their href, onclick, onmousedown, onmouseup attributes but it only says “undefined”. I do notice that there’s a lot of complicated javascript in these pages.

one site in particular baffles me:
http://www.sharenator.com/Boy_Teaches_His_Puppy_How_to_Eat/#/doggy_01_Boy_Teaches_His_Puppy_How_to_Eat-0.html

It’s actually pretty good. The buttons aren’t selectable as well. The ids of the buttons are nextBtn, nextBtn2, prevBtn and prevBtn2.

Anybody has any idea how to implement this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:38:50+00:00Added an answer on May 28, 2026 at 1:38 am

    You can use jQuery’s .click(callback) function (http://api.jquery.com/click/) or .delegate(selector, ‘click’, callback) (prior to jQuery 1.7) and .on(‘click’, selector, callback) (jQuery 1.7+) or .bind(‘click’, callback).

    Thanks to Anthony Grist for pointing out that .live() is now deprecated 🙂

    As so:

    <button id="clickable">Click Me!!</button>
    

    Then target the button with jQuery:

    $("#clickable").click(function(){
        // Send user to this link
        location.href = "http://www.takemehere.com";
    });
    

    You can read more about this on the link I gave, and on jQuery’s homepage.

    UPDATE

    The actual page handles this with:

    $('#prevBtn').mousedown (onBackward);
    

    Which would onmousedown call:

    function onBackward () {
        showImg (currentId - 1);
    }
    

    The use of arrow keys:

     $(document).keyup (function (event) {
        var activeElement = document.activeElement.tagName;
        if (activeElement == 'INPUT' || activeElement == 'TEXTAREA') return;
        //alert (window.location.pathname);
    
        if (event.keyCode == 39) onForward();
        else
        if (event.keyCode == 37) onBackward();
    });
    

    See http://www.sharenator.com/js/slideshow.js for the source code of the slideshow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lately I've been wondering if there's a difference between initializing the variables that have
lately I have been writing a lot of tiny plugins for my web projects
Lately I have been finding that some of the ColdFusion applications on my production
Lately I have been trying my hands on Eclipse IDE for java development. I
Lately, I have taken to the pattern of having a lot of diagnostic logging
Lately I've been thinking a lot about building a website/blog/community oriented site. However I
Lately I have been experiencing Eclipse Galileo (3.5) slowing down under Java 1.5b12 OR
Lately I have been playing around with Java's ScriptEngine API, namely the javascript engine,
Lately I have been having more and more issues with the content assist in
Lately, we've been seeing exceptions like this in our .NET (.asmx) webservices: System.Web.Services.Protocols.SoapException: Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.