我想在用户登陆后关闭本窗口打开一个新窗口

tssungeng 2003-10-17 04:00:24
我想在用户登陆后关闭本窗口打开一个新窗口(只有标题,没有地址栏和菜单的),如何写这个js代码?
...全文
25 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
jammyxu 2003-10-17
  • 打赏
  • 举报
回复
利用控件来自动关闭本窗口才能不出现确认对话框 JAVASCRIPT达不到这个效果:

<html>
<head>
<title>Welcome to 。。。</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%" border="0">
<tr>
<td align="center">
<object id=close_self type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="close">
</object>
<font face="Arial">Loading....</font>
</td>
</tr>
</table>
<script>
<!--
window.open("<%= redir_url %>","YTERP","height=600,width=800,top=" + (screen.height-600)/2 + ",left=" + (screen.width-800)/2 + ",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
window.focus();
close_self.Click();
//-->
</script>
</body>
</html>
qnzu 2003-10-17
  • 打赏
  • 举报
回复
奇怪,我的怎么还是有关闭的提示啊?

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%></title>
<script language="javascript">

function openit(id)
{
pop=window.open("df.htm","弹出窗口","toolbar=no,menubar=no,scrollbars=no,directories=no,resizable=no,location=yes,status=yes,top=0,left=0,width=320,height=220");//看看英文意思,可以自行调整

self.opener=null;//控制不点确认按钮
window.close();

}
</script>
</head>
<body bgcolor="#0855B5">

<p align="center"><a href="javascript:openit()"><img border="0" src="images/XP.jpg" align="center"></a> </p>
</body>

</html>
fyzeng 2003-10-17
  • 打赏
  • 举报
回复
<script>
window.opener=null;
pop=window.open("pop.html","弹出窗口","fullscreen=yes");
window.close();
</script>
longshenwang 2003-10-17
  • 打赏
  • 举报
回复
<script>
pop=window.open("pop.html","弹出窗口","toolbar=no,menubar=no,scrollbars=no,directories=no,resizable=no,location=yes,status=yes,top=0,left=0,width=320,height=220");//看看英文意思,可以自行调整

self.opener=null;//控制不点确认按钮
window.close();
</script>
tssungeng 2003-10-17
  • 打赏
  • 举报
回复
1。关闭窗口不要点【确认】,这个怎么改?
2、要求弹出窗口全屏
longshenwang 2003-10-17
  • 打赏
  • 举报
回复
<script>
pop=window.open("pop.html","弹出窗口","fullscreen=yes");

window.close();
</script>

全屏的.
longshenwang 2003-10-17
  • 打赏
  • 举报
回复
<script>
pop=window.open("pop.html","弹出窗口","toolbar=no,menubar=no,scrollbars=no,directories=no,resizable=no,location=no,status=no,top=0,left=0,width=320,height=220");

window.close();
</script>


第一 哈哈哈...

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧