如何在 IE 中运行的 javascript 搜索引擎在新窗口中打开搜索结果页面?
检查这个 http://javascript.internet.com/forms/multiple-search- engine.html 页面。我想知道如何在适用于 Internet Explorer 的新窗口中打开搜索结果。另外,如何设置搜索框的正文加载。请帮我。这是我第三次问,但没有专家能够解决这个问题。在此之前,曾向专家发送过解决方案,但该解决方案仅适用于 mozilla。帮我。技术问题。
Check this http://javascript.internet.com/forms/multiple-search-engine.html page. I wonder how to open search result in new window which works for Internet Explorer. Also, how to set body onload for the searchbox. Please help me. This third times i asked but there's no expert able to solve this. Before this, an expert was sent a solution but it works just for mozilla only. Help me. TQ.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的情况下,表单似乎提交到新选项卡而不是新窗口。可以通过设置新窗口的宽度和高度来强制打开新窗口,但您必须注意弹出窗口阻止程序可以阻止此操作。另外不要忘记在表单中将 target 属性设置为 _blank ,这样您就可以在停用 js 的浏览器中优雅地降级。
It seems that in your case the form submits into a new tab instead a new window. The new window can be forced by setting the width and height of the new window, but you must be aware that popup blockers can prevent this action. Also don't forget to set the target attribute to _blank in the form so you can degrade gracefully in browsers with js deactivated.
我没有深入研究您的代码,但尝试更改
为
应该在新窗口中打开它。
I haven't delved into your code deeply, but try changing
into
that should open it in a new window.