如何使用window.open方法
我知道通过 window.open
方法,我们可以使用以下代码强制 IE 打开新的浏览器窗口,而无需任何工具栏。
window.open("","mywindow","status=1,toolbar=0");
但是,我想要的是......我有一个登录表单&我需要做的是,当用户输入他/她的登录 ID 时密码和按提交按钮,该浏览器工具栏中将打开的下一个页面(成功登录后)不应出现在那里。
任何人都可以帮助我提供生产这个东西所需的确切代码吗?
I know by window.open
method we can force IE to open new browser window without any tool bar by using this following code.
window.open ("","mywindow","status=1,toolbar=0");
But, what I want is... I've a login form & what i need to do is, when ever user enter his/her login id & password & press submit button the next what ever page will open(after successfully login) in that browser's tool bar should not appear there.
Can any body help me with the exact code which needed to produce this thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
window.open
的第一个参数是URL
,因此您只需将请求的 url 作为第一个参数传递,并在用户登录后执行 window.open。使用相同的格式隐藏工具栏,唯一的问题是没有什么可以阻止用户或网页打开另一个窗口,该窗口将再次默认具有工具栏装饰。
The first argument to
window.open
is theURL
, so you just pass the requested url as the first parameter and execute window.open after the user is logged in.Using the same format to hide the
toolbar
, the only problem is there is nothing stopping the user or a web page opening another window that would default again to having the toolbar decoration.