javascript or html to open link in chrome

Could someone give me a method using js or html to create a link that will open in chrome (IE is the default browser for our company)  I have been researching and as far as I can tell there is no method.
Who is Participating?
Dustin SaundersDirector of OperationsCommented:
In IE you can create a shell object and run the browser.  You would probably need to push out some changes via GPOs to enable it (ActiveXObject) safely for users.

		<script type="text/javascript">
			function openInChrome(){
				var shell = new ActiveXObject("WScript.Shell");"Chrome");
		<input type="button" onclick="openInChrome()" value="Launch Experts Exchange">

Open in new window

ste5anSenior DeveloperCommented:
You can try as Dustin wrote, but consider an user having an other browser, which don't necessarily support  new ActiveXObject(). So in short, there is no general solution.

But I have to admit as long as you don't use specific, brand new HTML5 API's then just place a simple toast on your page, which tells the user why he should use Chrome instead of his browser. And use polyfills for the rest.
Dustin SaundersDirector of OperationsCommented:
That's a fair point, and a good note.  Despite IE being the default browser if some user launches in a different one your link won't do much.

Depending on what you're trying to do (is there a reason you have the link on the page, something like a default intranet site?), you can always go the old school desktop shortcut route to link to chrome followed by a URL string.
Dustin SaundersDirector of OperationsCommented:
Working code on how to launch Chrome via IE.

Additional advice and consideration from experts.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.