![]() |
|
|
+ Search |
![]()
|
Aug 2nd, 2001 05:41
zmx kiki, henrik marik,
function Test()
{
if (document.all){//IE
t = document.selection.createRange().text;
}else{//Netscape (meme si le dblclick marche pas sous
Netscape
t = document.getSelection();
}
alert(t);
}
With this you get the text of the selection under IE 4 + and Ne 4.x
Replace alert(t) by your document.form......value = t;
Good Luck