sounds odd, why do you ever need to call javascript code? consider to expose some event, and have the javascript provide the event handler, seehttp://weblogs.asp.net/stevencohn/archive/2004/05/24/140201.aspx
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=ap3drj%243mb%2407%241%40news.t-online.com
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=ap3drj%243mb%2407%241%40news.t-online.com
我自己做过隐藏所有IE窗口的例子,都找到了啊,只是没有实现关闭的消息而已,你再试试吧。用第二种也肯定可以取到,我只是做过试验而已。
<OBJECT id="Button2"
classid="http://localhost/MyDir/MyButtonControl.dll#MyButtonControl.MyButton
" VIEWASTEXT>
</OBJECT>
<script language="javascript" for="Button2" event="MyButtonClicked()">
<!--
// after catching the user event do some stuff...
window.location.href = "SomeUrl.aspx";
//-->
</script>