Copy textbox to Clipboard: need help

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

Hello,
What is wrong with that script? It does not work!
<SCRIPT LANGUAGE="JavaScript">
function ClipBoard() {
var phoneNumber = document.forms("f1").T2.value;
Copied = phoneNumber;
Copied.execCommand("RemoveFormat");
Copied.execCommand("Copy");
}
</SCRIPT>
 
For security reason, browser's block scripts on a web page from interact
with a user desktop.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top