如何在Google Chrome浏览器中使用工具栏打开窗口? [英] How to window.open with a toolbar in Google Chrome?

查看:674
本文介绍了如何在Google Chrome浏览器中使用工具栏打开窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下javascript在Firefox,Safari,IE和Google Chrome中打开弹出窗口:

  window.open( http://google.com,foo,toolbar = yes,location = yes,menubar = yes)

但是,在谷歌浏览器中,工具栏(通常有前进和后退按钮等)不会出现在弹出的窗口中。 (在Windows和Mac上进行测试)



我该如何解决这个问题?我希望用户能够使用他们最熟悉的工具向前和向后导航。



谢谢!

http://crbug.com 上提交。



如果您只是使用window.open(url),它会在您想要的按钮的同一个窗口中打开一个新标签。


The following javascript opens a pop-up in Firefox, Safari, IE, and Google Chrome:

window.open("http://google.com", "foo", "toolbar=yes,location=yes,menubar=yes")

However, in Google Chrome the toolbar (with the usual forward and back buttons, etc.) does not appear on the popped-up window. (Tested on both Windows and Mac.)

How can I fix this? I would like the user to be able to navigate forward and back using the tools with which they are most familiar.

Thanks!

解决方案

Unfortunately Chrome only supports a small set of window features when using window.open. If you believe that this is a bug or an issue you can file it at [http://crbug.com].

If you just use window.open(url) then it will open a new tab in the same window with the buttons you desire.

这篇关于如何在Google Chrome浏览器中使用工具栏打开窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆