Can greasemonkey open a link in a different browser?
September 23, 2009 9:51 AM   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 (2 answers 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, 2009


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, 2009


« Older Is there a "curves" function on Photoshop Elements...   |   Dyslexic friend + change of career x (What... Newer »
This thread is closed to new comments.