Google Answers Logo
View Question
 
Q: Determine text selection start and end positions in HTML/JavaScript ( No Answer,   0 Comments )
Question  
Subject: Determine text selection start and end positions in HTML/JavaScript
Category: Computers > Programming
Asked by: jeanlucpicard-ga
List Price: $40.00
Posted: 22 Oct 2006 05:40 PDT
Expires: 26 Oct 2006 11:37 PDT
Question ID: 775769
Exhibit 1 (simple web page).
<html><body>abcbcba<input type="botton"></body></html>

Scenario:
1- In a web browser, user selects the first occurence of the string 'bcb'
2- User clicks on the button

Needs:
- System replies by displaying an alert (message box) with 2,3: 2 is
the starting position of the selection, and 3 is the length of the
selection

Clarification of Question by jeanlucpicard-ga on 23 Oct 2006 11:10 PDT
Is this even possible?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy