use DHTML, for example (for IE):
<div id="dvHTML"></div>
<form name="form1">
<input type="text" name="txtLink" value="csdn">
<input type="text" name="txtURL" value="http://www.csdn.net">
<input type="button" value="create link" onclick="createLink(this.form.txtLink.value, this.form.txtURL.value)">
</form>
<script language="javascript">
function createLink(txt,url)
{
  var a = document.createElement("A");
  a.href = url;
  a.innerHTML = txt;
  document.getElementById("dvHTML").appendChild(a);
}
</script>

解决方案 »

  1.   

    这个只能是动态的在页面上添加一些字符,我想把输入的文档写入一个静态html中保存起来,再把该html文件的位置连接到另外一个html文件中的特定位置上,该如何实现?
      

  2.   

    就象 CSDN 论坛这样的效果提出问题->生成页面->加入列表...
      

  3.   

    apparently, you cannot do that on the client side with DHTML, you need to post the changes back to the server side and make the changes there with PHP
      

  4.   

    这和文本操作有关吧?
    我想是这样实现的,打开html,然后指定写入到哪里不就可以了吗?
      

  5.   

    $fp=fopen("youhtml","a");
    fwrite($fp,"something);