<SCRIPT>
<!--
window.open ('page.html','newwindow','height=100,width=100,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>
<!--
window.open ('page.html','newwindow','height=100,width=100,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>
解决方案 »
- 为什么DOM2级事件失效了???
- 如何用jquery判断文件域 是否为空?
- 错误 3 “" + result1[2] + "”不是有效标识符。
- 请专家帮我看看 那里错了谢谢
- jquery注册验证实现。
- javascript代码在网页中的位置有限制吗?
- ~~~~~~~~~~window.onload不执行?奇了怪了!~~~~~~~~~~~~
- 为什么11.2*3会得到33.5999999994
- 题目如下:共有三个下拉框,当第一个下拉框被选重之后,第二个下拉框中的选项随即确立,第三个下拉框中的选项根据第二个下拉框中的值也随
- 已知table对象,如何用Javascript获取caption对象?
- 有没有人用过????
- JAVASCRIPT里2个float相乘会出现精度不对
<SCRIPT LANGUAGE="java script"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
<script language=javascript>minimizebar="minimize.gif"; //nbw窗口右上角最小化“按钮”的图片
closebar="close.gif"; //nbw窗口右上角关闭“按钮”的图片
icon="icon.gif"; //nbw窗口左上角的小图标function noBorderWin(fileName,w,h,titleBg,titleColor,titleWord,borderColor,scr)
/*
------------------参数说明-------------------
fileName :无边窗口中显示的文件。
w :窗口的宽度。
h :窗口的高度。
titleBg :窗口“标题栏”的背景色。
titleColor :窗口“标题栏”文字的颜色。
titleWord :窗口“标题栏”的文字。
borderColor:窗口“边框”的颜色。
scr :是否出现滚动条。取值yes/no或者1/0。
--------------------------------------------
*/
{
nbw=window.open('','','fullscreen=yes');
nbw.resizeTo(w,h);
nbw.moveTo((screen.width-w)/2,(screen.height-h)/2);
nbw.document.writeln("<title>"+titleWord+"</title>");
nbw.document.writeln("<"+"script language=javascript"+">"+"cv=0"+"<"+"/script"+">");
nbw.document.writeln("<body topmargin=0 leftmargin=0 scroll=no>");
nbw.document.writeln("<table cellpadding=0 cellspacing=0 width=100% height=100% style=\"border: 1px solid "+borderColor+"\">");
nbw.document.writeln(" <tr bgcolor="+titleBg+" height=20 onselectstart='return false' onmousedown='cv=1;x=event.x;y=event.y;setCapture();' onmouseup='cv=0;releaseCapture();' onmousemove='if(cv)window.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>");
nbw.document.writeln(" <td width=21 align=center><img width=12 width=12 src="+icon+"></td>");
nbw.document.writeln(" <td style=\"font-family:宋体; font-size:12px; color:"+titleColor+";\"><span style='top:1;position:relative;cursor:default;'>"+titleWord+"</span></td>");
nbw.document.writeln(" <td align=center width=30 style=font-size:16px;>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onclick=window.blur();>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=关闭 src="+closebar+" onclick=window.close();>");
nbw.document.writeln(" </td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln(" <tr>");
nbw.document.writeln(" <td colspan=3><iframe frameborder=0 width=100% height=100% scrolling="+scr+" src="+fileName+"></iframe></td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln("</table>");
}
</script>
</head><body>
<!----------------- 一个应用的例子 ----------------->
<button onclick=noBorderWin('','400','240','#000000','#CCCCCC','一个无边窗口的测试例子','#000000','yes');>open</button>
</body></html>
Specifies the height of the window, in pixels. The minimum value is 100.
left = number
Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
I see ,The minimum value is 100.
but how can I get the window which size<100*100 by other ways