下面一段简单的代码,在IE, FF 中都不能执行onlick事件的js代码。
在IE中提示: 为帮助保护您的安全,Internet Explorer已经限制此文件显示可能访问你的计算机的活动内容。因为页面是要给别人访问的,怎么处理?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title> 无标题</title>
</head><body>   
    <form >
     <table cellspacing="0" border="1" id="ctl00" >
   <tr>
      <th scope="col"> 选择 </th>
   </tr>
   <tr>
         <td>
                 <input id="chkSelect"  type="checkbox" onclick="alert();" />
      </td></tr>
</table>
        </form>   
</body>
</html>