Dear Experts,
I want to capture the text to the clipbroad when i use the mouse left
clicking on such text..
( i want to simplify the step of "Highlight Text" > "Mouse Right Click" >
"Copy")
Can i use javascript to do this?
I found some hints about this from internet:
=============== =============== =============== =
<!-- Begin
function copyit(theField ) {
var tempval=eval("d ocument."+theFi eld)
tempval.focus()
tempval.select( )
therange=tempva l.createTextRan ge()
therange.execCo mmand("Copy")
}
// End -->
</script>
</HEAD>
<BODY>
<form name="it">
<div align="center">
<input onclick="copyit ('it.select1')" type="button" value="Press to Copy the
Text" name="cpy">
<p>
<textarea name="select1" rows="3" cols="25">
If this is highlighted, then it has been copied.
</textarea>
</div>
</form>
=============== =============== =======
But this text needs inside the text box..
How can i do this?
Thans so much~
Koman Ko
I want to capture the text to the clipbroad when i use the mouse left
clicking on such text..
( i want to simplify the step of "Highlight Text" > "Mouse Right Click" >
"Copy")
Can i use javascript to do this?
I found some hints about this from internet:
=============== =============== =============== =
<!-- Begin
function copyit(theField ) {
var tempval=eval("d ocument."+theFi eld)
tempval.focus()
tempval.select( )
therange=tempva l.createTextRan ge()
therange.execCo mmand("Copy")
}
// End -->
</script>
</HEAD>
<BODY>
<form name="it">
<div align="center">
<input onclick="copyit ('it.select1')" type="button" value="Press to Copy the
Text" name="cpy">
<p>
<textarea name="select1" rows="3" cols="25">
If this is highlighted, then it has been copied.
</textarea>
</div>
</form>
=============== =============== =======
But this text needs inside the text box..
How can i do this?
Thans so much~
Koman Ko
Comment