javascrpit

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

javascrpit

Post by penguinboy »

Well.. I had an idea while I was trying to fall asleep last night...
Anyway.. I don't know much about javascrpit,
but I was wondering if there was anyway that
I could tell what text is highlighted on the screen.

For instance, lets say after I make this post.
I highlight all the text from the post on the screen.
Then I click a button... like .. [quote] or something.

Can javascript tell what text I have highlighted?
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

This script might prove to be of some help.

http://javascript.internet.com/page-det ... -text.html
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Huh. Surprisingly, that script works in Mozilla/Firebird as well as IE! Cool.
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

Yeah! Thats awsome thanks alot microthick.
Post Reply