I have a HTML file on my server with a link to it from outlook.
Is there a way in HTML or Javascript to force the page to always open in Chrome. I know the systems have Chrome installed by default.
Double clicking your file will automatically open it in your default browser. If you'd like it to open in Google Chrome you need to set Chrome as your default browser.
I don't know of a way in HTML/Javascript.
well holding the shift key down and clicking on the link may do the trick assuming chrome is your default browser
Related
I must have done something to Google Chrome on my Windows.
Local HTML files, even though they are associated with Chrome, do not actually open in Chrome anymore when I double click them. For example, double clicking an HTML file on my desktop will launch Chrome, but the browser window will not display the content of the HTML file.
If I change the program my computer will use to display HTML files to Safari or Firefox, they open as I expect them to, rendering the HTML properly in a browser window.
If, I have a Chrome window open and drag the HTML file into the browser window, it will render the HTML content properly, but the double clicking is the behavior I'm hoping to get back.
Does anyone know why this might have caused this change in Chrome behavior? And best of all, how to fix it?
so I want to open html file with live server extension but in chrome browser , I don't know why but it's always open in edge browser
Can you use this command live-server --port=8080 --browser=chrome
This is probably caused by the fact that Edge may be set as your default browser. Go to your Settings app, search "Default Browser" and modify your OS' default browser that way.
When using the Microsoft Edge browser, by default when you open a PDF it will open the PDF in a new tab using the built-in PDF viewer. To avoid this, you can adjust the browser's settings: Toggle on the "Always open PDF files externally" option. This works great. However, it presents a separate issue. Our internal applications use embedded PDFs in iframes. When the external toggle is set to on, these PDFs will not show in the iframes. This doesn't happen in Chrome. Has anyone else experienced this and know a work around?
I've tried removing the type="application/pdf" from the iframe tag to no avail. I can't find anything else online.
It looks like an expected result because you have enabled the option Always open PDF files externally.
So MS Edge browser is giving you an option to download the PDF file and open it using the desired app.
You said this doesn't happen in Chrome browser.
If you enabled the Download PDF files instead of automatically opening them in Chrome option then you will notice the same result in the Chrome browser.
Output in the Chrome browser:
If you click on the Open button then it will download the PDF file.
I did not get any solution or a workaround for this issue.
If you think that there should be an option to load the file in an iframe if Always open PDF files externally option is enabled then I suggest you click on the Send Feedback button in the MS Edge browser and try to provide your feedback about it to the Microsoft.
I posted feedback suggesting that an exclusion/inclusion list be in included but the simplest way would be to treat the frame as part of the session. But this is not Microsoft it is the Chrome projects issue.
Assuming everybody uses chrome browser;
So I am creating a wordpress blog for some friends. We use a shared network, and I want to create a link on that blog that when pressed opens up a folder in internet explorer.
The current html code is
I am using a chrome extension called "open in IE" , but to use it requires a right click then choosing an option within the menu. This process is too long and I want to simplify it.
Is there any html code I can write that make it open that file:// link using the "open in IE" extension by default? The goal is to be able to left click the link in chrome and have a window explorer open with the files in it.
Cheers
Unfortunately, targetting a specific browser to open on a clicked link is not possible.
Unless you modified some of their internal registry or used an activex plugin, it is just not a supported feature at this time.
You will most likely need to hard code some javascript.
I believe it is possible to reference installed extensions from your code using chrome.extensions.
Reference here, http://developer.chrome.com/extensions/extension.html
we have a website with links to a sharepoint. These features in sharepoint only work in IE so i dont want to open up firefox or chrome if that is the default browser. Is there anyway to have a
My Link
force open up in internet explorer ?
You can use javascript to inject the link in your HTML code if the client is IE, and maybe show a warning message if the browser isn't IE. Anyway you can't tell any browser to open a link using another browser.
No, definitely not.
For Firefox users, the best thing that comes to mind is to have them install the IE tab. It allows the opening of pages inside Firefox but using the IE engine - but also requires user action.
If this is run in a windows environment, you could use a PHP script to open Internet Explorer through PHPs support for COM objects.
If you are interested I can provide the script to do this.