How to access the contents of the Clipboard in a Web page

Source: Internet
Author: User
Tofu production is a boutique
Http://www.asp888.net Tofu Technology Station

In doing the network hunt, often encountered such a problem, whether the IP address needs to re-enter the problem, so here I consider how to use the Clipboard
The problem
Fortunately, in IE HTML extension DOM has such a function, I enjoy the public, we share together.
<HTML>
<HEAD>
<script language= "JScript" >
function Doufucopy () {
TextRange = Test.createtextrange ();
Textrange.execcommand ("Copy");
}
function Doufupaste () {
TextRange = Tacode.createtextrange ();
Textrange.execcommand ("Paste");
}
-->
</SCRIPT>
IP address to look for: <input type=text id= "Test" >
<input Type=button value= "Replication" >
<input Type=button value= "Paste" >
This is not very simple! : I still want to say a few things I have said many times before, we in the code, we must often view
Help! Think more!


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.