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 7159007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:09:34+00:00 2026-05-28T13:09:34+00:00

I wrote an HTML page which is being viewed primarily on the iPad. Basically

  • 0

I wrote an HTML page which is being viewed primarily on the iPad. Basically it’s an FAQ list with a hover effect on each question. To initiate the hover effect on the ipad I had to put a dummy link like this.

<a href="#">The question?</a>

Here is the problem which is valid for every browser: When the list is so long that you have to scroll down and when you click on a link at the bottom of the page, it jumps back to the top while initiating the hover effect. I made a fiddle for demonstrating purpose:

http://jsfiddle.net/SWXHR/1/

When scrolling down and clicking on the last link, the page will jump to the top.

Question: How can I prevent the page from jumping to the top when using a dummy link?

  • 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-28T13:09:35+00:00Added an answer on May 28, 2026 at 1:09 pm

    Add this to your links:

    <a href="#" onClick="return false;">The question?</a>
    

    Or if you’re doing it through JQuery:

    $('a[href="#"]').click(function(event){
    
        event.preventDefault();
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented an XMLHttpRequest() call to a standalone html page which simply has
I have a some html being generated by JQuery on a Share Point page.
I have written a HTML page which has following code. <div id=adsListContainer style=margin: 5px;>
Hey, I have a html page which contains for example the following tags :
I've installed Tomcat and I've been testing it: I wrote some .html and .jsp
I wrote some CSS in my HTML code to create rollover buttons. Then i
I wrote a regex to fetch string from HTML, but it seems the multiline
I wrote a simple webpage as follows: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
I have a SharePoint web part that I wrote in C# which is used
I'm passing a disclosure page through an iframe on an html page: <iframe src=../disclosures/Pass_CO_GRN.html

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.