How to open Chrome from Safari - javascript

I have created a webpage that works best with Chrome. If the user opens this page from Safari, I want to put a button that says "Click here to open this page in Chrome". Upon clicking this button, Chrome should fireup and load the specified URL.
Is there a way to do that? Or even just to launch Chrome from Safari?

There actually is a way, if you want to do this, make the button, and set the href to the link, but at the beginning, delete ‘https://‘ and replace it with ‘googlechromes://’, for example ‘googlechromes://YouTube.com’ if you go to that link in safari, it will ask, “do you want to open this page in chrome?” And if you click yes it will open chrome over safari

There is no way to this within the browser, but here a few work-arounds. You could ...
Make a button to copy your URL to their clipboard so they can paste it in Chrome
Send the user to a download link if they don't have chrome (just ask them if they have chrome or not)
Close the tab in the browser after the URL is copied
You could use window.close() or just close(), as pointed out in this answer.
These are just some thoughts. It's the best anyone could do for a problem like this. I hope this helps.

Related

What is the best way to open a vcard (vcf) file from a link in Chrome iOS?

It seems this is impossible.
Chrome iOS wont open a vcf file as far as I can tell and I've tried many possible solutions.
Mobile Safari will open a vcf with the Add Contact screen but there is no way that I can see that you can explicitly open a link in mobile Safari from Chrome.
The best solution I can come up with is clicking the link copies it, then opens a popup which tells the user to switch to safari and paste the link in there.

How can I reload my chrome extension by javascript?

I'm trying to make that if you press a button in the popup window in my chrome extension, it will reload the extension. Is that possible?
Just found this method, which does exactly what I want:
chrome.runtime.reload();

open IE browser by default

I created a web site where I would like to have 1 of the button of my menu navigation to open the internet explorer browser. Since the URL I am pointing for this specific button can only be view with IE and not with Chrome, Firefox etc... Which mean if someone is using Chrome for example and want to access this specific link by clicking on it it will open IE browser and see the content. This is feasible? thanks in advance
No, this is not feasible.
Opening in another browser is totally user side. You would have to alert the user that this page is best viewed in Internet Explorer and leave it up to them to download/open Internet Explorer to view it.

Re-enabling window.alert in Chrome

I accidently checked the "disable alerts from this site" box in Chrome, and now I cannot get any window.alert to work on my localhost.
I have tried resetting the settings in advanced but no luck.
Close and re-open the tab. That should do the trick.
I can see that this only for actually turning the dialogs back on. But if you are a web dev and you would like to see a way to possibly have some form of notification when these are off...in the case that you are using native alerts/confirms for validation or whatever. Check this solution to detect and notify the user https://stackoverflow.com/a/23697435/1248536
In Chrome Browser go to setting , clear browsing history and then reload the page

Is there a way to simulate a Ctrl-press every time the left-mouse is clicked?

I've got a problem with Internet Explorer.
As you might know FireFox and Google Chrome open links in new tabs, if the links target="_blank".
But this won't work in Internet Explorer.
Due to InternetExplorers standard-options it opens every link in a new popupwindow. If you wanna open links in a new tab you have to change the setting in the options or press 'ctrl' every time you click a link.
So now my question: is there a way to simulate a Ctrl-press every time the left-mouse is clicked?
This behaviour is managed by internet explorer in its own way.
If the user wants something different he can configure the browser to behave like you are suggesting. So my straight answer is "it's not your concern" but IE or user's concern.
The only workaround I can suggest you is to open the link in the same page and live to the intelligence of user the right click/open in a nw tab action.

Categories

Resources