<a href="javascript:void(0)" onClick="javascript:document.getElementById('ping_content').focus();">写评论 </a> <FORM name="form1" id="form1">
<a name="p" id="p"> </a>//这里是苗标记,可以是使页面滚动到 评论区域
<textarea rows="10" cols="70" id="ping_content" name="ping_content" > </textarea>
</FORM>
<a name="p" id="p"> </a>//这里是苗标记,可以是使页面滚动到 评论区域
<textarea rows="10" cols="70" id="ping_content" name="ping_content" > </textarea>
</FORM>
直接用focus方法就可以了,不需要设置锚点