鲨丁鱼.net技术小栈

这里讨论.net的web和form开发,还有其它关于WEB开发和安全的全部知识点,顺带一些经典的有意思的杂文!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

JS插入FreeTextBox的代码

Posted on 2006-05-18 15:52  King0502  阅读(111)  评论(0编辑  收藏  举报
  function InsertElement(){
   rturnText = window.showModalDialog("ElementparaConf.aspx?ELeID=" + document.all.ChildDropDown.value,"","");
   if(rturnText != null && rturnText!= ""){
    FreeTextBox1_designEditor.focus();
    FreeTextBox1_designEditor.document.selection.createRange().pasteHTML(rturnText);
   }
  }