开发者

script block in partialview prevents from fire onclick event on IE9

i have a simple partial view with a script block:

<input type="button" onclick="alert('clicked');" value="click me" />
<script type="text/javascript" language="javascript">alert("bla");</script>

when i click on the button the onclick event not fires. when i remove the开发者_JS百科 script block it works. it only happens on IE9 (chrome and firefox are OK). any ides? :\ thanks!


I'm not sure , but move the above the tag , and give it a try !!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜