各位大侠帮忙看一下这段代码有啥问题:
<script language="javascript">
function clic(){
var left = (screen.width - 350) / 2;
var top = (screen.height - 210) / 2;
var features = 'height=' +210 + ',';
features += 'width=' + 350 + ',';
features += 'top=' + top + ',';
features += 'left=' + left + ',';
features += 'scrollbars=no' + ',';
features += 'resizable=no,status=yes';
var pic=window.open("upheadImage.jsp?t=1","UploadPicture",features);
}
</script>
<input type="button" onClic="clic()" value="Clic">
当点击按钮时,没有什么反映,这是为什么啊?搞不懂啊!
各位大侠就帮个忙吧!
<script language="javascript">
function clic(){
var left = (screen.width - 350) / 2;
var top = (screen.height - 210) / 2;
var features = 'height=' +210 + ',';
features += 'width=' + 350 + ',';
features += 'top=' + top + ',';
features += 'left=' + left + ',';
features += 'scrollbars=no' + ',';
features += 'resizable=no,status=yes';
var pic=window.open("upheadImage.jsp?t=1","UploadPicture",features);
}
</script>
<input type="button" onClic="clic()" value="Clic">
当点击按钮时,没有什么反映,这是为什么啊?搞不懂啊!
各位大侠就帮个忙吧!
解决方案 »
- ext 页面(comb?) 类似dropdownlist 绑定webconfig里面的数组!
- 下拉框联动文本框怎么做?(在线等待)
- HELP!! How to decode encoded Polylines?
- 请教个JS循环打印的问题
- html中用javascript如何获取一个文本框的字符长度
- 想改掉form表单的action属性的值 可是确实不容易改
- 求一个由英文字母开头,由a-z,数字和_号和-组成的正则表达式,多谢大家了
- 定义了一个marquee对象,怎样单击按钮时改变字体改色呢?
- 窗口问题?
- 求解一个定时器的问题
- 再次发帖 http://topic.csdn.net/u/20090507/10/ae5e7cb5-8691-432d-ae8a-d99084079f8f.html
- html 嵌套HTML页面
如果能就一步一步的调吧.
不能的话.就是IE设置的问题了.
把安全属性调到最低再试.
将 <input type="button" onClic="clic()" value="Clic">
改为
<input type="button" onclick="clic();" value="Clic">
<script language="javascript">
function clic(){
var left=(screen.width-350)/2;
var top=(screen.height-210)/2;
var features="height=210,width=350,top="+top+",left="+left+",scrollbars=no,resizable=no,status=yes";
window.open("upheadImage.jsp?t=1","UploadPicture",features);
//假如你这里不指定弹出窗口的名称(即去掉UploadPicture),打开速度可以快很多.
}
</script>
<input type="button" onClick="clic()" value="Clic">