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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:55:24+00:00 2026-06-08T02:55:24+00:00

http://jsfiddle.net/JonVisc/ufHBd/4/ So in the jsFiddle the basic steps are to: Click anywhere on ‘Hello

  • 0

http://jsfiddle.net/JonVisc/ufHBd/4/

So in the jsFiddle the basic steps are to:

  • Click anywhere on ‘Hello World’ (not highlighting): Range is: true
  • Drag to highlight (highlight ‘ll Wor’ as an example: Range is: false
  • Click anywhere in that highlighted range: Range is: false

Directly following that point the highlighting goes away, is this an event? Basically I need to detect that clearing of the highlighting (and subsequently clear a saved range since the highlighting is not there) but I unfortunately don’t know how.

A click (not highlighting after that) returns the expected result of false but since I wanted that result in the previous click this isn’t ideal.

  • 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-06-08T02:55:25+00:00Added an answer on June 8, 2026 at 2:55 am

    Actually the results are browser-dependent: when clicking on a non-collapsed selection in Mozilla the selection is collapsed when the click event fires but in WebKit the selection is still uncollapsed.

    As to detecting it, your options are limited. Recent WebKit and IE all the way back to 5.5 fire a selectionchange event on document, which sounds like what you want:

    http://jsfiddle.net/ufHBd/5/

    Mozilla and Opera do not fire any useful selection-related events in regular content and all you can do is handle mouse and key events. There’s a little more background in the comments to this answer: https://stackoverflow.com/a/8443541/96100

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

Sidebar

Related Questions

http://jsfiddle.net/VhjR7/1/ When you click the my lists menu once, it expands, but if you
http://jsfiddle.net/motocomdigital/uTV5k/18/ I've updated using toggle instead on click - though still can't get smooth
http://jsfiddle.net/Lqvcr/53/ This is so damn basic and I have no idea how to make
http://jsfiddle.net/VTD9P/2/ $(button).click(function(){ $(body).append('<div class=vidminclose>X</div>'); }); $(.vidminclose).click(function(){ $(this).remove(); }); ​ ​why is it when i
http://jsfiddle.net/3NRsd/ var foo = $(div).bind(click, function() { $(div).animate({height : 500px}, 2000); $(div).animate({height : 50px},
http://jsfiddle.net/aBaw6/2/ This demo does not add class when you hover a list item. What
http://jsfiddle.net/motocomdigital/uTV5k/14/ Hello, I thought I was nearly their with this conundrum. See my jsfiddle
http://jsfiddle.net/rHVcX/1/ Is it possible to have multiple click events on one elements, when using
http://jsfiddle.net/mBkM3/ Whenever I click the button, it opens twice and then closes. Why doesn't
http://jsfiddle.net/p57hm/ I simply want one more clone on each click. Did i miss something

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.