111,126
社区成员
发帖
与我相关
我的任务
分享
//控件中:
private string url = "";
public void GetURL(string url)
{
this.url = url;
}
<!--页面中-->
<html>
<head>
<script type="text/javascript">
window.onload = function(){
document.getElementById("mycontrol").GetURL(window.top.location.href);
}
</script>
</head>
<body>
<object id="mycontrol" classid="你控件的classid"></object>
</body>
</html>