简体   繁体   English

使用Chrome打开Internet Explorer / Firefox等窗口

[英]Open a Internet explorer/Firefox etc window with Chrome

I'm building a smaller Web Builder with Javascript and I want the user to be available to preview their page in all the major browsers. 我正在使用Javascript构建较小的Web Builder,并且希望用户可以在所有主要浏览器中预览其页面。 Because that the tool only is available for Chrome I need them to get the chance to open a Internet explorer window with the same information, and the same for Firefox and Opera and Safari... Is there a way to do so, in Javascript? 因为该工具仅适用于Chrome,所以我需要他们有机会打开一个具有相同信息的Internet Explorer窗口,并且对于Firefox,Opera和Safari也具有相同的信息。是否可以使用Javascript来做到这一点?

PS The information that should appear on in the window is stored in a variable. PS应该在窗口中显示的信息存储在变量中。

If JS can call firefox.exe , it could also call nasty_trojan.exe . 如果JS可以调用firefox.exe ,它也可以调用nasty_trojan.exe The best you can do is generate a custom link server-side, and say "paste this link into your other browsers. 最好的办法是在服务器端生成一个自定义链接,然后说“将该链接粘贴到其他浏览器中。

Unless you'd like to be really fancy, in which case you need to render the pages server-side, ala http://browsershots.org/ . 除非您真的想花哨,否则在这种情况下,您需要在服务器端呈现页面,例如http://browsershots.org/

There's a chance it could be done if you wrote it as a chrome extension, because those have some measure of trust, but the JS on a page stays very much inside its sandbox. 如果您将其编写为chrome扩展名,则有可能实现此目标,因为它们具有一定程度的信任度,但页面上的JS仍在其沙箱中。

This doesn't belong on the answers, but I did not see how to comment (I am new, sorry!). 这不属于答案,但我没有看到如何评论(我是新来的,对不起!)。 This may help. 这可能会有所帮助。 It seems you may need to use a java applet, at least, I'm seeing that in a few places. 看来您可能需要使用Java小程序,至少在某些地方我看到了这一点。 Hope I've helped! 希望我有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Javascript打印弹出窗口适用于Firefox / Chrome但不适用于Internet Explorer - Javascript printing a popup window works in Firefox/Chrome but not Internet Explorer 有没有办法在新浏览器(Chrome / FireFox等)中打开Internet Explorer中的链接? - Is there a way to have a link in Internet Explorer that opens in a new browser (Chrome / FireFox / etc.)? 在 Internet Explorer 中打开的弹出窗口 - Popup window open in Internet explorer 在Internet Explorer中打开强制窗口 - force window open in internet explorer chrome,firefox和Internet Explorer中的Ajax和html事件 - Ajax and html events in chrome, firefox and Internet Explorer JS幻灯片可以在Firefox和Chrome上运行,但不能在Internet Explorer上运行吗? - JS slideshow works on firefox and chrome but not internet explorer? 为什么这在fireFox中有效,但在Chrome或Internet Explorer 9中却无效? - Why is this working in fireFox but not in Chrome or Internet Explorer 9? 网站可以在Firefox和Chrome中运行,但不能在Internet Explorer中运行 - Site works in Firefox and Chrome but not Internet Explorer Firefox和Internet Explorer中的全窗口onClick处理程序 - Full window onClick handler in Firefox and Internet Explorer Internet Explorer 8、9 window.open问题 - Internet Explorer 8, 9 window.open issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM