Hi
I want to write a javascript program which will change the font/color of the user selcted text on a web page.
Is it possible to know the exact location of the selected text from the web page.
I want a user to select a text on a web page and then my javascrip code should locate this text in the web page's source file.
I dont want to search for this text in the source file of the web page.
please help!!!!
kamleshpdude 0 Newbie Poster
Recommended Answers
Jump to Post— FC Jamison 31Here is a script that captures any text that has been highlighted with the cursor. In Internet Explorer, it even grabs text highlighted within a text box or textarea.
It shouldn't be to much of a stretch to modify the code …
All 2 Replies
kamleshpdude 0 Newbie Poster
FC Jamison 31 Posting Pro in Training Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.