Copy textbox to Clipboard: need help

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>
 
T

Thomas A. Rowe

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.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top