default.htm
----
<script>
window.open('login.htm','','menubar=no;toolbar=no;location=no;left='+(screen.availWidth-400)/2+';top='+(screen.availHeight-300)/2+';width=400;height=300;')
</script>
login.htm
--------
<form action='login.asp'>
<input type=text name=user>
<input type=password name=pass>
<br>
<input type=submit value='submit'>
<input type=button value='register'>
</form>
----
<script>
window.open('login.htm','','menubar=no;toolbar=no;location=no;left='+(screen.availWidth-400)/2+';top='+(screen.availHeight-300)/2+';width=400;height=300;')
</script>
login.htm
--------
<form action='login.asp'>
<input type=text name=user>
<input type=password name=pass>
<br>
<input type=submit value='submit'>
<input type=button value='register'>
</form>
解决方案 »
- jquery为什么这样没效果?
- 请教JavaScript限制图片大小问题
- 谁能提供一个漂亮的气泡提示框特效
- 没分了,请好心人帮帮忙,如何将JScript中的值传给下一个jsp页面?
- 求助:javascript脚本错误,拒绝访问(特别请meizz看下)
- js 减法
- 以屏幕一点为中心,自动缩小的圆或矩形
- 如何将置顶的贴子,先读出来,其他的后面读出来呢
- 一个有ID的表格,若干行,第行行高可能不一定,如何能得到这个表和的总高度?
- 能否实现:一个button本来是'灰'的,担当页面中的任何一个checkbox被选中时,
- 请教:如何将别人在WEB页上提出的意见,发送到指定的邮箱?
- javascript高手请进
----
<script>
window.open('login.htm','','menubar=no;toolbar=no;location=no;left='+(screen.availWidth-400)/2+';top='+(screen.availHeight-300)/2+';width=400;height=300;')
window.opener = null;
window.close();
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<script language="JavaScript">
wleft=(screen.width-400)/2;
wtop=(screen.height-300)/2;
nwindow=window.open('login.htm','','fullscreen=yes,scrollbars=no')
nwindow.resizeTo(400,300);
nwindow.moveTo(wleft,wtop);window.opener = null;
document.all.WebBrowser.ExecWB(45,1)
</script><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT></OBJECT>
</body></noframes>
</html>
不过,上面的代码,,: wsj(骆驼的好懂一些!
我能看懂
呵可呵