我想登陆后自动导向另一个也面时,在这个页面打开一个主窗口(不是打开新窗口),该窗口只有标题栏和状态栏,并且是最大化显示的.我用了window.open,不好使.代码如下:
function openwin(){
var h=screen.height;
var w=screen.width;
window.open("Main.htm","adasdasdad","height=h,width=w,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=no"); //写成一行
我想将height和width的值以客户端屏幕宽和高来确定,给他h和w两个变量为什么没作用?要怎么做才可以???
function openwin(){
var h=screen.height;
var w=screen.width;
window.open("Main.htm","adasdasdad","height=h,width=w,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=no"); //写成一行
我想将height和width的值以客户端屏幕宽和高来确定,给他h和w两个变量为什么没作用?要怎么做才可以???
解决方案 »
- WinForm 动态事件传参数怎么传?
- 新手提问!
- css问题
- 求征服ajax .net,电子版一个30分相送
- response.write里的js代码怎么事实执行?
- 高手请进,关于文件流是否占用网络资源~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- .net 为什么下载保存的文件名是它的整个路径的名字!!应该怎么改
- 求助:DataGrid如何动态生成列????
- DATADRID模板列里CheckBox,报错对象不存在(单元格值null引起)!先判定还错。
- 江湖救急,小弟碰到这样的文题,谁帮我解决分全给了(jackyhx)
- 关于XSlTransform.load 的使用问题?
- Session互相覆盖的问题
function openwin(){
var h=screen.height;
var w=screen.width;
window.open("center.htm","adasdasdad","height="+h+",width="+w+",menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=no");
}
openwin();
</script>
function openwin(){
var h=screen.height;
var w=screen.width;
window.open("center.htm","adasdasdad","height="+h+",width="+w+",menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=no");
window.close();
}
openwin();
</script>
function openwin(){
var h=screen.height;
var w=screen.width;
window.open("center.htm","adasdasdad","height="+h+",width="+w+",menubar=no,toolbar=yes,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes");
window.opener = null;
window.close();
}
openwin();
</script>