btn.attribute.add("javascript");第一次单击不会弹出窗口 [英] btn.attribute.add("javascript"); does'nt pop the window in 1st click

查看:84
本文介绍了btn.attribute.add("javascript");第一次单击不会弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哦,对不起.代码项目中的新功能.
无论如何,谢谢您的帮助.

解决方案

window.open中的第二个选项无效.它应该是以下之一:

* _blank-URL已加载到新窗口中.这是默认设置
* _parent-URL已加载到父框架中
* _self-URL替换当前页面
* _top-URL替换了可能加载的所有框架集
* name-窗口的名称

当您提供上传照片"作为目标窗口名称时,该名称显然不存在,这会导致IE错误.

要么使用这个:

newwindow = window.open(url,'''',``top = 50,left = 200,width = 650,height = 450,scrollbars = no'');

或使用:

newwindow = window.open(URL,``_blank'',``top = 50,left = 200,width = 650,height = 450,scrollbars = no'');


谢谢伴侣.

现在可以正常使用

我只是将其留为空白.它有效

再次感谢


它显示了这个

第137行
字符:9
错误:参数无效
代码:0
URL:http://  localhost:2233/mng_photo.aspx  



但是,当我转到这行时,只有简单的

任何建议请


oh sorry . new in codeproject.
Anyways thanks for your help

解决方案

The second option in window.open is invalid. It should be one of the following:

* _blank - URL is loaded into a new window. This is default
* _parent - URL is loaded into the parent frame
* _self - URL replaces the current page
* _top - URL replaces any framesets that may be loaded
* name - The name of the window

As you provided ''Upload Photo'' as the target window name, which obviously not present, it is causing error in IE.

Either use this:

newwindow = window.open(url, '''', ''top=50,left=200,width=650,height=450,scrollbars=no'');

or use:

newwindow = window.open(url, ''_blank'', ''top=50,left=200,width=650,height=450,scrollbars=no'');


Thanks Mate.

It works Fine now

i just left it blank .and it works

Thanks Again


it shows this

line :137
char :9
Error :invalid Argument
Code:0
URL:http://localhost:2233/mng_photo.aspx



however when i go to this line there is simple only

Any Suggestion Please


这篇关于btn.attribute.add("javascript");第一次单击不会弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆