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. 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?
P.S. The information that should appear on in the window is stored in a variable.
If JS can call
firefox.exe, it could also callnasty_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/.
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.