【发布时间】:2012-08-02 00:52:30
【问题描述】:
我无法弄清楚为什么以下输入在 IE 中不起作用。我也尝试了type="button",但它也不起作用。
<input type="image" src="/images/150x200.png" alt="Profile" onClick="window.open('http://www.genericname.com/blah.aspx','Blah - Blah Blah','width=790,height=600,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no')" />
我的目标是在单击按钮时以 弹出窗口 的形式打开一个新的窗口。
我需要知道这是否是一个已知错误。如果是这样,我将需要找到其他解决方案。欢迎提出任何建议。
【问题讨论】:
标签: javascript image internet-explorer input onclick