添加MSDN搜索的正确方法

今天博客园发现一位用户在自己Blog页面的公告添加MSDN搜索时, 插入了<form>标记,造成他的Blog页面无法进行任何提交,也就无法对他的文章发表评论。对于这个问题,博客园已经改了程序,过滤了公告中的<form>标记。
如果你想添加MSDN搜索,  请参考下面的代码:
<input name="tbMSDN" type="text" style="WIDTH:120px" > 
<input type="button" name="ButtonMSDN" value="MSDN搜索"  onclick="window.location='http://www.microsoft.com/china/msdn/searchredir.aspx?qu='+encodeURIComponent(tbMSDN.value)">
 
posted @ 2004-08-15 17:18  dudu  阅读(1367)  评论(7编辑  收藏  举报