Closed Thread Icon

Preserved Topic: reference to highlighted text?? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18202" title="Pages that link to Preserved Topic: reference to highlighted text??" rel="nofollow" >Preserved Topic: reference to highlighted text??\

 
Author Thread
galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 07-03-2001 07:26

Hey:
I couldn't seem to find this in msdn.
like when I highlight some text in a page, how can I retrieve it's value??

document.createTextRange() seem too sophisticated, are there any easier references?

thanx

3rdperson
Paranoid (IV) Inmate

From: your subconscious. (scared yet?)
Insane since: May 2001

posted posted 07-03-2001 07:36

threep looks at galaxal with a quizzical expression and says:
"crtl+c?
uhmm.... in other words, i'm not entirely sure what you mean..."

galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 07-03-2001 07:54

ok, <input type=button onclick="alert(document.body.innerHTML)">
when you click that button, it will alert the entire body of the html page, is there something like document.body.highLightedText??



[This message has been edited by galaxal (edited 07-03-2001).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-03-2001 11:17

Nope. You'll have to use text ranges...

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-03-2001 15:40

Somewhere, I have a COPY TO CLIPBOARD script........I'll see if I can find it.

galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 07-03-2001 18:26

hmmm, there's an object called:
document.selection, and it has 2 childrens, .type and .typeDetail, however, i couldn't get it to work, is it a bug?

[This message has been edited by galaxal (edited 07-05-2001).]

« BackwardsOnwards »

Show Forum Drop Down Menu