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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:30:02+00:00 2026-05-26T23:30:02+00:00

please see the following: http://jsfiddle.net/8sq2w/ Problem: Focus in the item Highlight the text and

  • 0

please see the following:

http://jsfiddle.net/8sq2w/

Problem:

  1. Focus in the item
  2. Highlight the text and move the cursor all the way to the right
  3. Focus out of the item
  4. Note how the item is now stuck at the end, broken

Problem:

enter image description here

How can you reset on blur so you see the front of the div content?

Desired after focus:

enter image description here

Thanks

  • 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-26T23:30:02+00:00Added an answer on May 26, 2026 at 11:30 pm

    You can just restore the window position on the JavaScript onblur event.

    For example:

    <div contenteditable="true" class="listItem" onblur="window.scroll(0,0)">This is a really big field...</div>
    

    Or if you don’t want to scroll the window, use event.target:

    <div contenteditable="true" onblur="event.target.scroll(0,0)"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please see the following jsfiddle: http://jsfiddle.net/bhellman1/Na3hd/11/ Right now when you move over the box,
please see: http://jsfiddle.net/4Z4fQ/19/ consider the following html: <a id=myElement href=http://www.google.com/> <img id=image src=http://www.google.com/intl/en_com/images/srpr/logo3w.png alt=google/>
Please see the following: http://jsfiddle.net/GWJMf/ What I'm trying to do is have the TITLE
Please take a look at the following fiddle: http://jsfiddle.net/ellenchristine/tty3e/ Note that when you expand
Please see http://jsfiddle.net/jGCx9/ I have right: 28px which causes the span element to shift
Please see attached image alt text http://img248.imageshack.us/img248/7743/datefrom.png I have a table which have FromDate
hello friends i have tryied folowing code as u can see here http://jsfiddle.net/QCdz4/ i
Please see the the following http://valogiannis.com/recent/ .I have a webpage and when user click
Consider the following code ( http://jsfiddle.net/FW36F/1/ ): <input type=checkbox onchange=alert(this.checked)> <button onclick=document.getElementsByTagName('input')[0].checked=!document.getElementsByTagName('input')[0].checked;>toggle</button> If you
Please see following methods. public static ProductsCollection GetDummyData(int? customerId, int? supplierId) { try {

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.