Can greasemonkey open a link in a different browser?
September 23, 2009 9:51 AM   RSS feed for this thread Subscribe

Is it possible to use a greasemonkey script in Firefox to open specific links in Internet Explorer? If so, what would it look like?

The particular element in the HTML page is an input button which executes some javascript, which opens a different webapp in a new browser window. However, that webapp only works with IE, and I use Firefox. The element looks similar to this:

<input value="New Webapp" class="btn" name="webapp" onclick="openIntegration('/servlet/servlet.Integration?scontrolCaching=1&lid=00b70000000zL1t&eid=50070000009tNYv&ic=1', 'height=600,location=no,resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=1', 1)" title="New Webapp" type="button" />

The openIntegration function (which sits in a separate .js file) looks like this:

function openIntegration(url, props, positionType) {
var newWindow = window.open(url, "_blank", props, false);
if (positionType == 2){
newWindow.moveTo(0, 0);
} else if (positionType == 0){
newWindow.moveTo(0, 0);
newWindow.resizeTo(self.screen.width, self.screen.height);
}
}


Can javascript be used to specify a browser other than default? How would I go about doing this?
posted by Roger Dodger to computers & internet (3 comments total)
There is an IE tab that Firefox can be configured to always open a site using the IE tab.
posted by JohnnyGunn at 9:54 AM on September 23


Seconding IE Tab. You can configure it with a list of URLs that should be rendered using IE. What's nice about this, though, is that IE isn't opened up separately. IE Tab only switches to IE inside the actual website rendering area. You still get your normal Firefox back-forward, bookmarks, etc.
posted by odinsdream at 9:58 AM on September 23


If you really want it to open IE, and not in a tab, you can use the IE View add-on for Firefox, which can also be configured to always open certain URLs in IE.
posted by cerebus19 at 10:26 AM on September 23


« Older Is there a "curves" ...   |   Dyslexic friend + change of ca... Newer »

You are not logged in, either login or create an account to post comments