about:<body%20onload='location.href="http://www.shooter.com.cn/?range=all&SortBy=time&Sort=asort&perpage=9999&keyw="+window.clipboardData.getData("Text")'>

解决方案 »

  1.   

    测试可以呀
    是不是你的对象是不可EDIT的呀?<html>
    <head>
    <title>无标题</title>
    <head>
    <body>
    <script language ='javascript'>
    <!--
    function pasteText()
    {
    str=clipboardData.getData("text");
    clipboardData.setData("text", str );
    edit_space.focus();
    document.execCommand("Paste");
    }
    //-->
    </script>
    <input id=edit_space><input type="button" onclick="pasteText()"  value="复制此文本,然后点击单击"></body>
    </html>
      

  2.   

    我自己试着做HTML在线编辑器,可编辑元素是一个div层,但我用上面的代码总是粘贴不成功,但剪切板中的数据确实是被转换为纯文本格式了。
      

  3.   

    根本没必要getData,这样取出来的当然是没格式的纯text了<div id=edit_space contenteditable=true style="width:500;height:400;border:1px solid red"></div>
    <INPUT TYPE="button" value=test onclick=pasteText()>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function pasteText(){
    edit_space.focus();
    document.execCommand("Paste");
    }
    //-->
    </SCRIPT>