HTMl可以调用到this对象吗? 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以,ASP.NET也可以,类似function也可以调用this <!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> <script type="text/javascript"> function ShowInfo() { var oDiv=document.getElementById('h1'); alert(oDiv.innerHTML); alert(oDiv.getAttribute('href')); } </script></head><body> <div style="display:none;"><a id="h1" href="http://www.blog.csdn.net/ws_hgo">要得到的文本 </a> </div><input id="Button1" type="button" value="点击" onclick="ShowInfo(this);" /></body></html> 恩,是可以的 <asp:CheckBox ID="CheckBox1" runat="server" onclick="onclickme(this)" /> 大家帮我看一下,汉字怎么成了外语啊 急盼解答:搜索网站的内容全部是我的,而域名却不是了,为什么? ASP虚拟主机如何实现301啊 如何确定从数据库读出的SqlDataReader是否为空啊 文件上传下载中的奇怪问题,高分求助 请问在datagrid中是怎么样控制棒定数据的长度的呢 请问哪有类似于微软的PassPort或CA用户认证的东东 我在执行datagrid的UPDATE时报如下错,请帮我看看 C#中怎樣控制EXCEL文件中的行寬、字體? 了解一下asp.net平台的搭建费用,请有经验的人解答 开源问题? treeview如何动态绑定
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script type="text/javascript">
function ShowInfo()
{
var oDiv=document.getElementById('h1');
alert(oDiv.innerHTML);
alert(oDiv.getAttribute('href'));
}
</script>
</head>
<body>
<div style="display:none;"><a id="h1" href="http://www.blog.csdn.net/ws_hgo">要得到的文本 </a> </div>
<input id="Button1" type="button" value="点击" onclick="ShowInfo(this);" /></body>
</html>