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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:33:40+00:00 2026-05-27T05:33:40+00:00

internet cake for anyone who can help me with this. I have a long

  • 0

internet cake for anyone who can help me with this.

I have a long (~about 3 screens long) html form, which needs to stay on one page as it’s being used for data entry and going through multiple pages will slow things down.

The data entry is being done on Firefox and what I want to happen is every time the users cursor goes into/out of a field that is at or near the bottom of the visible screen, to scroll the form up more than just a single field. Each of my fields are on a new line and the default behavior with long forms in Firefox is once you hit the bottom of the screen when you tab into the next field it will scroll up the bare minimum necessary to see that field; it’s frustrating for data entry as it’s helpful to always be able to see ahead of what you are doing.

I don’t mind using any third party js stuff (jquery/mootools etc.), I tried out the scrollTo plugin but I’m not very good with jquery so I couldn’t get this to work, not even sure if it’s possible.

As a side note, the behaviour I’m wanting is in Google Chrome by default, but I have to get this to work with FF unfortunately.

  • 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-27T05:33:41+00:00Added an answer on May 27, 2026 at 5:33 am

    Try this (using jQuery):

    $('input, textarea').on({
      focus: function (evt) {
        var
          viewportHeight = $(window).height(),
          selfBottom = $(this).offset().top + $(this).height();
    
        if (viewportHeight - selfBottom - $(window).scrollTop() < 10 /*minimum distance in pixel*/) {
          $(window).scrollTop(selfBottom - viewportHeight / 2);
        }
      }
    });
    

    Demo: http://jsfiddle.net/P7gd2/2/

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

Sidebar

Related Questions

I have read from internet I got this points which says Interfaces is used
I don't have internet on my mac how can I install documentation for iOS
Maybe this is asking to have my cake and eat it to, but I
Internet explorer has a menu option which can be used to send a page
Internet explorer seems to be hang after you tab through form inputs while holding
In internet explorer we can create the object of ActiveXObject like follows xmlDoc=new ActiveXObject(Microsoft.XMLDOM);
for Internet Explorer, I have the current code to select a range in an
Can Internet Explorer bind events to absolute positioned elements ? I can't bind a
Can I make internet explorer render the page when in php i use flush()
I searched internet and SO but could not get solution to this issue. I

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.